Skip to content

Commit

Permalink
revert cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajandeep98 committed Jul 29, 2024
1 parent 8110f00 commit 1808fa1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions appointment-frontend/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1808fa1

Please sign in to comment.