stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

[Test][cypress] [Super Admin] Admin Statistics Custom Date Range Inputs #486

Closed elraphty closed 6 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create a bounty

but we want to assert that when we click on the custom date we can type the dates manually in the date inputs.

We want to Sign in as Alice and create 22 bounties, then navigate to the admin tab, assert that the 20 bounties are on the 7-day and the bounties count shows 22 bounties, click on the date dropdown, and select Custom and input the start date as the beginning of the month and the end date as the current date, then assert that 22 bounties is still the bounties count, the screen's date range at the top left side matches the selected date.

Note: the dates should be dynamic and not static i.e. the start date should be the first day of the month the bounty was created and the end date should be the last day of the month

File to create

sphinx-tribes-frontend/cypress/e2e/51_adminCustomDateInput.cy.ts

there will be no modifications to sphinx-tribes-frontend/cypress/support/commands.ts

Acceptance Criteria

The Custom Date Input flow is shown below

image

References

Example cypress test https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts

Vayras commented 6 months ago

Assign

NengakDakup commented 6 months ago

@elraphty can i take this or the next one?

AbdulWahab3181 commented 6 months ago

@elraphty Could you please assign me this one or may be the next one?

chiragDork commented 6 months ago

Hi @elraphty can you please assign me the next one, been a while since I worked on one.