From c9d545fcc6d7a12c92a17c3a164e17370478a5f4 Mon Sep 17 00:00:00 2001 From: ChrisZie Date: Mon, 19 Oct 2020 15:42:30 +0800 Subject: [PATCH] add a better assertion for admin login command --- cypress/support/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 1883016..fde63ec 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -35,6 +35,6 @@ Cypress.Commands.add("sendMessage", (name, subject,email) => { .click() //Check if backend it loaded - cy.contains('a', 'B&B Booking Management') - + cy.get('div.room-form') + .should('be.visible') }) \ No newline at end of file