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

[tests][cypress] Load More For Created And Assigned Bounties #436

Closed elraphty closed 5 months ago

elraphty commented 5 months ago

Context

Currently, we have a cypress command to create a bounty we want to assert that when a user can load more bounties when the bounties created or assigned are more than 20.

We want to create 30 bounties assigned to the same user and then go to the people's page, search for the bounties assignee, click on the assignee, and see the 20 bounties visible on the Assigned Bounties list, when we scroll down to the bottom of the page we see a Load More button, it reveals the remaining 10 bounties, then we click on the active user profile image and select the Bounties tab, we should see 20 bounties, when we go to the bottom of the page and click on the Load More button we should see the remaining 10 bounties.

File to create

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

Acceptance Criteria

The Load More buttons are shown below

image image

References

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

MahtabBukhari commented 5 months ago

@elraphty Could you assign me?

elraphty commented 5 months ago

@NengakDakup you can have this one

MuhammadUmer44 commented 5 months ago

@elraphty next assign me

elraphty commented 5 months ago

@NengakDakup you can have this one

@NengakDakup you have to comment on this so I can assign you.

MuhammadUmer44 commented 5 months ago

So, @elraphty Please assign me.

chiragDork commented 5 months ago

Hi @elraphty can you please assign this to me

MuhammadUmer44 commented 5 months ago

@elraphty next please assign me