Skip to content

Commit

Permalink
Merge pull request stakwork#456 from chiragDork/issue_449
Browse files Browse the repository at this point in the history
Test for signout connection code
  • Loading branch information
elraphty authored Mar 21, 2024
2 parents ccd717f + 94febee commit 464df06
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cypress/e2e/35_signoutConnectionCodes.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
describe('Sign Out Connection Codes', () => {
it('should display a message when a user tries to post a bounty without signing in', () => {
cy.visit('http://localhost:3007');
cy.wait(1000);

cy.contains('Bounties').click();
cy.wait(5000);

cy.contains('Post a Bounty').click();
cy.wait(1000);

cy.get('button.euiButton:contains("Get Sphinx")').click();
cy.wait(1000);

cy.contains('Reveal Connection Code').click();
cy.wait(1000);

cy.contains('We are out of codes').should('exist');
});
});

0 comments on commit 464df06

Please sign in to comment.