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] Delete User From Organization #412

Closed elraphty closed 7 months ago

elraphty commented 7 months ago

Context

Currently, we have a cypress command to create an organization we want to assert that an organization admin can delete a user from the organization users list.

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 trash icon to delete the user.

File to create

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

Acceptance Criteria

The Delete user 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

aliraza556 commented 7 months ago

@elraphty assign me

Zoe-AE-ND commented 7 months ago

Assign

AbdulWahab3181 commented 7 months ago

Could you please assign me?

elraphty commented 7 months ago

Assign

I will create a profile-related test and assign it to you.

Zoe-AE-ND commented 7 months ago

Thank you

elraphty commented 7 months ago

Thank you

@Zoe-AE-ND you can take the next one I'm creating