Skip to content

[Test][Cypress] Create org with image #427

@elraphty

Description

@elraphty

Context

Currently, we have a cypress command to [Create org]](https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/support/commands.ts#L252) )but we want to assert that we can create an organization with an image.

So what we want to do is modify the Create org command and add an optional image to key to its parameter, if an image is available it gets attached to the image file input and uploaded.

File to create

sphinx-tribes-frontend/cypress/e2e/26_createOrgWithImage.cy.ts
there will be modifications to sphinx-tribes-frontend/cypress/support/commands.ts

Acceptance Criteria

  • Given a user is signed in
  • Create an organization with an image
  • Then the test asserts the organization is created successfully and the image is visible

The add organization modal is shown below

image

  • 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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

🆕 New

Relationships

None yet

Development

No branches or pull requests

Issue actions