Promotion box on saclab.com/sell

As a seller visiting http://saclab.com/sell
I want to see a promotional box highlighting current commission offers
So that I am encouraged to submit high-value bags during the promotion period

Background: Given I am on the "https://www.saclab.com/sell " page

Scenario: Show promotion box when active and within date range
Given the promotion box is enabled in the admin panel
And today’s date is within the promotion start and end dates
When the page loads
Then I should see a promotion box displayed

And when I hover over the promotion box

Then I should see the hover effect

And if a link is available

When I click the promotion box

Then I should be following the link

Mob: https://www.figma.com/design/6KT0tZfJw3u7R8b5pCH8vw/Saclab-Team-Library?node-id=11443-122809&m=dev

Desk: https://www.figma.com/design/6KT0tZfJw3u7R8b5pCH8vw/Saclab-Team-Library?node-id=11440-7459&m=dev

Hover effect (demo only on desk but should work on both mobile and desktop)

https://app.box.com/s/gk2r5ahm9xsf0p5w1ceb99kqzzrrb7va

Scenario: Promotion box content is editable by admin
Given I am an admin
When I open the promotion box settings
Then I should be able to edit text
And I should be able to add link
And I should be able to define the start and end date of the promotion
And I should be able to enable or disable the promotion box

And I can Choose the background and text colour of the default setting

And I can choose the background and text colour of the hover setting

Scenario: Hide promotion box when outside promotion date range
Given the promotion box is enabled in the admin panel
And today’s date is outside the promotion start and end dates
When the page loads
Then I should not see the promotion box

Scenario: Hide promotion box when admin disables it
Given the promotion box is disabled in the admin panel
When the page loads
Then I should not see the promotion box

Comments

Leave a Reply