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 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
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 settings icon.
Uncheck Withdraw from organization permission
Close the Roles Modal
Click on the settings icon.
Assert that Withdraw from organization is unchecked for the user
The add 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 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 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 usersettings icon
and uncheck theWithdraw from organization
permissionFile to create
sphinx-tribes-frontend/cypress/e2e/19_manageUserRoles.cy.ts
there will be no modifications tosphinx-tribes-frontend/cypress/support/commands.ts
Acceptance Criteria
Manage
buttonAdd User
buttonWithdraw from organization
permissionWithdraw from organization
is unchecked for the userThe add 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