diff --git a/cypress/e2e/main.spec.cy.js b/cypress/e2e/main.spec.cy.js index 3c47c7d..df1dcca 100644 --- a/cypress/e2e/main.spec.cy.js +++ b/cypress/e2e/main.spec.cy.js @@ -1,11 +1,12 @@ describe('template spec', () => { - it('passes', () => { - cy.visit('localhost:5173/') + it('Test - Branch', () => { + 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() 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() }