From 2984221123a0f400bb76be9c56f523600fe9abe0 Mon Sep 17 00:00:00 2001 From: chiragDork Date: Thu, 21 Mar 2024 20:34:58 +0530 Subject: [PATCH 1/2] test for signout connection code --- cypress/e2e/35_signoutConnectionCodes.cy.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cypress/e2e/35_signoutConnectionCodes.cy.ts diff --git a/cypress/e2e/35_signoutConnectionCodes.cy.ts b/cypress/e2e/35_signoutConnectionCodes.cy.ts new file mode 100644 index 00000000..04a29175 --- /dev/null +++ b/cypress/e2e/35_signoutConnectionCodes.cy.ts @@ -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:3000'); + 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'); + }); +}); From 94febee2e4ffe4862cc9b1306d9cc3b1c958ac48 Mon Sep 17 00:00:00 2001 From: chiragDork <82438619+chiragDork@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:26:27 +0530 Subject: [PATCH 2/2] Update 35_signoutConnectionCodes.cy.ts --- cypress/e2e/35_signoutConnectionCodes.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/35_signoutConnectionCodes.cy.ts b/cypress/e2e/35_signoutConnectionCodes.cy.ts index 04a29175..e9934d9a 100644 --- a/cypress/e2e/35_signoutConnectionCodes.cy.ts +++ b/cypress/e2e/35_signoutConnectionCodes.cy.ts @@ -1,6 +1,6 @@ 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:3000'); + cy.visit('http://localhost:3007'); cy.wait(1000); cy.contains('Bounties').click();