From 1808fa10ce7f40b6933ed524c041e1de8851780a Mon Sep 17 00:00:00 2001 From: Rajandeep98 Date: Mon, 29 Jul 2024 12:24:25 -0700 Subject: [PATCH] revert cmd --- appointment-frontend/cypress/support/commands.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/appointment-frontend/cypress/support/commands.ts b/appointment-frontend/cypress/support/commands.ts index 446b62df5..f1c58f5f1 100644 --- a/appointment-frontend/cypress/support/commands.ts +++ b/appointment-frontend/cypress/support/commands.ts @@ -135,12 +135,7 @@ Cypress.Commands.add('workaroundDatePickerTransition', (selector: string) => { Cypress.Commands.add('workaroundImageFade', (selector: string) => { cy.get(selector) .find('.v-image__image.v-image__image--preload') - .should('be.visible') - .and(($el) => { - const img = $el.get(0) as HTMLImageElement; - expect(img.naturalWidth).to.be.greaterThan(0); - expect(img.naturalHeight).to.be.greaterThan(0); - }); + .should('not.exist') }) // There is a bug in Cypress where screenshot() takes pieces of the browser