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] Remove Organization User Roles #411

Closed elraphty closed 6 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create an organization we want to assert that an organization admin can remove roles from a user when they click on the user settings icon

So what we want to do is use Login User to create a user profile, click on the user icon, click on the Add Organizationbutton and create an organization, then click on the Manage button of the newly created organization which will lead you to the OrganizationDetails page then click on Add User button to add an organization user, after adding the user click on the user settings icon and uncheck the Withdraw from organization permission

File to create

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

Acceptance Criteria

The add user flow is shown below

image image image

References

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

Zoe-AE-ND commented 6 months ago

Assign

AbdulWahab3181 commented 6 months ago

Could you please assign me?

aliraza556 commented 6 months ago

assign

elraphty commented 6 months ago

Assign

@Zoe-AE-ND I will get you a good first cypress issue since you have not made any Cypress PR yet.

elraphty commented 6 months ago

Could you please assign me?

Assigning