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 when we try to edit an organization. If we pass more than 20 characters for the organization title or more than 120 characters for the organization description the Edit Organization Button is disabled. The title input and description textarea show a character exceeded error.
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, click on the Manage but on the newly created organization, click on the Edit button, and try to edit the organization with characters that exceed the limits.
File to create
sphinx-tribes-frontend/cypress/e2e/21_errorEditingOrg.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 of the newly created organization
Click on the Edit button
Pass characters that exceed the title input and description text area limit.
Then Assert that the Edit Organization button is disabled, and title input and description text areas display an error.
The organization inputs are 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 when we try to edit an organization. If we pass more than 20 characters for the organization title or more than 120 characters for the organization description the Edit Organization Button is disabled. The title input and description textarea show a character exceeded error.
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, click on the
Manage
but on the newly created organization, click on theEdit
button, and try to edit the organization with characters that exceed the limits.File to create
sphinx-tribes-frontend/cypress/e2e/21_errorEditingOrg.cy.ts
there will be no modifications tosphinx-tribes-frontend/cypress/support/commands.ts
Acceptance Criteria
Manage
button of the newly created organizationEdit
buttonThe organization inputs are shown below
References
Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts