From 52ed08b8a9eea34485f3c197e8647f0547570c91 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 24 Apr 2026 10:22:22 +0300 Subject: [PATCH] test modal contains required fields --- cypress/e2e/homeCreatePlan.cy.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cypress/e2e/homeCreatePlan.cy.js b/cypress/e2e/homeCreatePlan.cy.js index 1bb9115..e501984 100644 --- a/cypress/e2e/homeCreatePlan.cy.js +++ b/cypress/e2e/homeCreatePlan.cy.js @@ -25,4 +25,16 @@ describe('Create plan modal on the home page', () => { .find('button.create-plan').click() cy.get('#create-plan-modal').should('be.visible') }) + + it('modal contains name, date start, date end, save, cancel', () => { + cy.get('#texts-list li').first() + .find('button.create-plan').click() + cy.get('#create-plan-modal input.plan-name').should('be.visible') + cy.get('#create-plan-modal input.plan-date-start') + .should('be.visible') + cy.get('#create-plan-modal input.plan-date-end') + .should('be.visible') + cy.get('#create-plan-modal button.save-plan').should('be.visible') + cy.get('#create-plan-modal button.cancel-plan').should('be.visible') + }) })