From 9a4ba9fdf002cf242a261fcdffbeaa17be166012 Mon Sep 17 00:00:00 2001 From: Adryano Junior Date: Mon, 21 Oct 2024 20:20:26 -0300 Subject: [PATCH 1/3] Testing branch --- cypress/e2e/main.spec.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/main.spec.cy.js b/cypress/e2e/main.spec.cy.js index 3c47c7d..40911e8 100644 --- a/cypress/e2e/main.spec.cy.js +++ b/cypress/e2e/main.spec.cy.js @@ -1,5 +1,5 @@ describe('template spec', () => { - it('passes', () => { + it('Test - Branch', () => { cy.visit('localhost:5173/') cy.get('[data-qa="profile-box"]') cy.get('[data-qa="comment-input"]').first().type('Test 123') From b450fd15b45f9c7efd6b813aca91d30c1fc45e68 Mon Sep 17 00:00:00 2001 From: Adryano Junior Date: Tue, 22 Oct 2024 11:07:06 -0300 Subject: [PATCH 2/3] change main spec --- cypress/e2e/main.spec.cy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/e2e/main.spec.cy.js b/cypress/e2e/main.spec.cy.js index 40911e8..5715ddf 100644 --- a/cypress/e2e/main.spec.cy.js +++ b/cypress/e2e/main.spec.cy.js @@ -6,6 +6,7 @@ describe('template spec', () => { cy.get('[data-qa="publish-button"]').first().click() cy.get('[data-qa="comment-text"]').contains('Test 123') cy.get('[data-qa="comment-text"]').each(($element) => { + if ($element.text() === 'Test 123') { cy.get($element).siblings('header').children('[data-qa="delete-button"]').click() } From 5966d60ef75b132ef40b1a82d09c58304f456374 Mon Sep 17 00:00:00 2001 From: Adryano Junior Date: Thu, 2 Jan 2025 13:38:53 -0300 Subject: [PATCH 3/3] Change cy.visit --- cypress/e2e/main.spec.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/main.spec.cy.js b/cypress/e2e/main.spec.cy.js index 5715ddf..df1dcca 100644 --- a/cypress/e2e/main.spec.cy.js +++ b/cypress/e2e/main.spec.cy.js @@ -1,6 +1,6 @@ describe('template spec', () => { it('Test - Branch', () => { - cy.visit('localhost:5173/') + cy.visit( 'localhost:5173/' ) cy.get('[data-qa="profile-box"]') cy.get('[data-qa="comment-input"]').first().type('Test 123') cy.get('[data-qa="publish-button"]').first().click()