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] Edit Organization Characters Restrictions On Name, And Description Fields #414

Closed elraphty closed 6 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 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

The organization inputs are shown below

image

References

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

AbdulWahab3181 commented 6 months ago

Could you please assign me?

chiragDork commented 6 months ago

Assign

MuhammadUmer44 commented 6 months ago

@elraphty, assign me

MahtabBukhari commented 6 months ago

@elraphty Could you assign me?