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

Closed elraphty closed 6 months ago

elraphty commented 6 months ago

Context

Currently, we have a cypress command to create an organization but we want to assert that when we pass more than 20 characters for the organization title, or pass more than 120 characters for the organization description the Add Organization Button is disabled, and the title input and description textarea shows 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 with a title greater than 20 characters and description greater than 120 characters.

File to create

sphinx-tribes-frontend/cypress/e2e/16_error_creating_organizations.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

gouravmpk commented 6 months ago

Assign

MirzaHanan commented 6 months ago

@elraphty Could you please assign me?

AbdulWahab3181 commented 6 months ago

Could you please assign me?

elraphty commented 6 months ago

Assign

@gouravmpk written a cypress test once? and can you deliver this within 2 days?

elraphty commented 6 months ago

@elraphty Could you please assign me?

@MirzaHanan assigned