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 #481

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 select a date range by clicking the date calender.

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

File to create

sphinx-tribes-frontend/cypress/e2e/50_adminCustomDateSelect.cy.ts

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

Acceptance Criteria

The Custom Date 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

MuhammadUmer44 commented 6 months ago

@elraphty assign me

AbdulWahab3181 commented 6 months ago

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

MahtabBukhari commented 6 months ago

@elraphty could you assign me? Please assign . Last work is completed i am going to make PR. It is late due to admin access otherwise i would have to make PR yesterday.

aliraza556 commented 6 months ago

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

ninja-programer commented 6 months ago

@elraphty Please take a look at this comment https://github.com/stakwork/sphinx-tribes-frontend/issues/479#issuecomment-2022677403

chiragDork commented 6 months ago

Hi @elraphty can you please assign one to me.

MirzaHanan commented 6 months ago

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

NengakDakup commented 6 months ago

Hi @elraphty been a while i worked on one. Can i take the next one?