From edc058957a2f9289f1e1077321aa5f276e374190 Mon Sep 17 00:00:00 2001 From: cibele Date: Sun, 7 Sep 2025 16:03:37 +0200 Subject: [PATCH] cypress automation test3 --- cypress/e2e/main.spec.cy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/main.spec.cy.js b/cypress/e2e/main.spec.cy.js index 3c47c7d..2d3dc6d 100644 --- a/cypress/e2e/main.spec.cy.js +++ b/cypress/e2e/main.spec.cy.js @@ -2,11 +2,11 @@ describe('template spec', () => { it('passes', () => { cy.visit('localhost:5173/') cy.get('[data-qa="profile-box"]') - cy.get('[data-qa="comment-input"]').first().type('Test 123') + cy.get('[data-qa="comment-input"]').first().type('Test 1234') cy.get('[data-qa="publish-button"]').first().click() - cy.get('[data-qa="comment-text"]').contains('Test 123') + cy.get('[data-qa="comment-text"]').contains('Test 1234') cy.get('[data-qa="comment-text"]').each(($element) => { - if ($element.text() === 'Test 123') { + if ($element.text() === 'Test 1234') { cy.get($element).siblings('header').children('[data-qa="delete-button"]').click() } })