From baaa2a851d8ea568e521755947fc2a4fb59aee38 Mon Sep 17 00:00:00 2001 From: Leo Costa Date: Mon, 8 Jul 2024 09:20:35 -0300 Subject: [PATCH 1/2] Break lint and tests on purpose --- cypress/e2e/authenticated.cy.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cypress/e2e/authenticated.cy.js b/cypress/e2e/authenticated.cy.js index 371c9d8..2852a66 100644 --- a/cypress/e2e/authenticated.cy.js +++ b/cypress/e2e/authenticated.cy.js @@ -18,13 +18,7 @@ describe('Scenarios where authentication is a pre-condition', () => { it('logs out', { tags: '@desktop-and-tablet' }, () => { cy.visit('/') - cy.wait('@getNotes') - - if (Cypress.config('viewportWidth') < Cypress.env('viewportWidthBreakpoint')) { - cy.get('.navbar-toggle.collapsed') - .should('be.visible') - .click() - } + cy.wait(2000) cy.contains('.nav a', 'Logout').click() From 8a19b64df8ceab9021e28b4ebec661b2fa1674be Mon Sep 17 00:00:00 2001 From: Leo Costa Date: Mon, 8 Jul 2024 09:23:17 -0300 Subject: [PATCH 2/2] Fix lint issue --- cypress/e2e/authenticated.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/authenticated.cy.js b/cypress/e2e/authenticated.cy.js index 2852a66..5dcfc36 100644 --- a/cypress/e2e/authenticated.cy.js +++ b/cypress/e2e/authenticated.cy.js @@ -18,7 +18,7 @@ describe('Scenarios where authentication is a pre-condition', () => { it('logs out', { tags: '@desktop-and-tablet' }, () => { cy.visit('/') - cy.wait(2000) + cy.wait('@getNotes') cy.contains('.nav a', 'Logout').click()