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.
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
Given a user is signed in
Click on the User profile icon/username, to lead you to the user profile
Click on the Organizations tabs
Click on the Add Organization button
Create an organization
Click on the Manage button
Click on the Add User button
Search for a user by typing in a username in the search input
Select the returned user
Add default roles to the organization user
Then assert that the user is on the organization user's list
Click on the trash icon.
Confirm that you want to delete the user
Assert that the user is no longer on the users' list
The Delete user flow is shown below
[ ] I have rebased and tested locally before submitting my PR
[ ] I can submit a PR within 2 days of taking the bounty
References
Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts
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 Organization
button and create an organization, then click on theManage
button of the newly created organization which will lead you to theOrganizationDetails
page then click onAdd User
button to add an organization user, after adding the user, click on the usertrash icon
to delete the user.File to create
sphinx-tribes-frontend/cypress/e2e/20_deleteOrgUser.cy.ts
there will be no modifications tosphinx-tribes-frontend/cypress/support/commands.ts
Acceptance Criteria
Manage
buttonAdd User
buttonThe Delete user flow is shown below
References
Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts