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

[Test][cypress] [User Roles] Manage Organization #463

Closed elraphty closed 5 months ago

elraphty commented 5 months ago

Context

Currently, we have a cypress command to create an organization

but we want to assert that when we assign a Manage Organization role to a user, the user can edit the organization details.

We want to Sign in as Alice, create an organization, add Carol to the organization, give Carol a Manage Organization role, then sign Alice out, Sign in as Carol, go to Carol's organization, and assert that the newly created organization is in Carol's list, click on the Organization's Manage button, in the OrganizationDetails assert that the Edit button is not disabled, then click on the Edit button and add update the organization description, assert that the new organization description matches Carol's description.

File to create

sphinx-tribes-frontend/cypress/e2e/41_rolesManageOrganization.cy.ts

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

Acceptance Criteria

The Manage Organization flow is shown below

image image image image

References

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

AbdulWahab3181 commented 5 months ago

@elraphty Could you please assign me this?

aliraza556 commented 5 months ago

Hi @elraphty can you please assign me. https://github.com/stakwork/sphinx-tribes-frontend/issues/462#issuecomment-2018008694

Zoe-AE-ND commented 5 months ago

Can help

NengakDakup commented 5 months ago

Hi @elraphty can i take this?

elraphty commented 5 months ago

Hi @elraphty can you please assign me. #462 (comment)

@aliraza556 I will assign the next one to you

MirzaHanan commented 5 months ago

Hi @elraphty can you please assign this and the next one to me.