From 58b3cdeb9ab71265b5cf2b56c0811ed6773b5bf4 Mon Sep 17 00:00:00 2001 From: MitulDavid Date: Wed, 29 Sep 2021 13:34:22 +0530 Subject: [PATCH] test: Fix flaky tests in form.js --- cypress/integration/form.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/integration/form.js b/cypress/integration/form.js index d20750b1d5..f860a742ef 100644 --- a/cypress/integration/form.js +++ b/cypress/integration/form.js @@ -8,7 +8,10 @@ context('Form', () => { }); it('create a new form', () => { cy.visit('/app/todo/new'); - cy.fill_field('description', 'this is a test todo', 'Text Editor'); + cy.get('[data-fieldname="description"] .ql-editor') + .first() + .click() + .type('this is a test todo'); cy.wait(300); cy.get('.page-title').should('contain', 'Not Saved'); cy.intercept({