From 1d246bf918126e84f1157682a55a7328491c9aa8 Mon Sep 17 00:00:00 2001 From: Hammad1007 Date: Thu, 28 Dec 2023 12:49:08 +0500 Subject: [PATCH] Update test code --- todo-list/cypress/e2e/test1.spec.cy.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/todo-list/cypress/e2e/test1.spec.cy.js b/todo-list/cypress/e2e/test1.spec.cy.js index fd1f373..818148d 100644 --- a/todo-list/cypress/e2e/test1.spec.cy.js +++ b/todo-list/cypress/e2e/test1.spec.cy.js @@ -54,13 +54,11 @@ describe('Project: Todo List', () => { }) it('Type some data in the textfield', () => { - cy.get('#form .input').should('be.visible').click() - .type('Hello world, how are you?').type('{enter}') + cy.get('#form .input').should('be.visible').click().type('Hello world, how are you?').type('{enter}') }) it('The entry is listed below and visible', () => { - cy.get('#form .input').should('be.visible').click() - .type('Hello world, how are you?').type('{enter}') + cy.get('#form .input').should('be.visible').click().type('Hello world, how are you?').type('{enter}') cy.get('.todos').should('be.visible') }) }) @@ -89,7 +87,7 @@ describe('Project: Todo List', () => { }) context('Right Click', () => { - it('The Right Click text is corect', () => { + it('The Right Click text is correct', () => { cy.get('body small').contains('Right click to delete todo').should('be.visible') }) @@ -99,7 +97,6 @@ describe('Project: Todo List', () => { cy.contains('.todos li', 'Hello world, how are you?').should('not.exist') }) }) - }) }) })