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] Add User To An Organization And Give The User Roles #404

Closed elraphty closed 5 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create an organization we want to assert that when we can add a user to an organization by clicking the Add User button and following the add user flow.

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.

File to create

sphinx-tribes-frontend/cypress/e2e/17_create_org_user.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

References

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

Vayras commented 6 months ago

@elraphty I have completed my first Cypress Test , I think I can take this

AbdulWahab3181 commented 6 months ago

@elraphty Could you please assign me? I have already worked in cypress https://github.com/stakwork/sphinx-tribes-frontend/pull/358

elraphty commented 6 months ago

@elraphty I have completed my first Cypress Test , I think I can take this

Okay @Vayras, successfully ran Cypress on your system?

MahtabBukhari commented 6 months ago

@elraphty could you assign me?

MahtabBukhari commented 6 months ago

@elraphty I have setup the locally and currently i have not any ticket

Vayras commented 6 months ago

@elraphty I have completed my first Cypress Test , I think I can take this

Okay @Vayras, successfully ran Cypress on your system?

Yeah I have a other windows machine, to run tests locally

elraphty commented 6 months ago

@elraphty I have completed my first Cypress Test , I think I can take this

Okay @Vayras, successfully ran Cypress on your system?

Yeah I have a other windows machine, to run tests locally

okay.