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
11 stars 42 forks source link

[Test][cypress] [Super Admin] Bounty Filter SortBy #475

Closed elraphty closed 3 months ago

elraphty commented 3 months ago

Context

Currently, we have a cypress command to create a bounty

but we want to assert that when we change the bounties filter sort by (it sorts by descending by default i.e. Newest), it changes the sorting direction of the bounties.

We want to Sign in as Alice and create 6 bounties, then navigate to the admin tab, assert that the 6 bounties are on the 7-day bounties list timeframe, then assert that the bounties are in chronologically descending order, then change the sortBy status to Oldest and assert that the bounties are ordered in ascending order (oldest first).

File to create

sphinx-tribes-frontend/cypress/e2e/47_adminFIlterSortBy.cy.ts

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

Acceptance Criteria

The Bounties filter Sort by flow is shown below

image image

References

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

MirzaHanan commented 3 months ago

@elraphty assign me

AbdulWahab3181 commented 3 months ago

@elraphty Could you please assign me?

ninja-programer commented 3 months ago

@elraphty can you assign this or the next one. I've configured the project and ready for writing a unit test.

saithsab877 commented 3 months ago

Hi @elraphty can you please assign the next one to me please

elraphty commented 3 months ago

@elraphty can you assign this or the next one. I've configured the project and ready for writing a unit test.

Assigning the next one

elraphty commented 3 months ago

ninja-programer

@ninja-programer please make your GitHub profile public