fix: #8417 fixed claimPhoto e2e test #1512
|
@ -1,5 +1,4 @@
|
|||
/// <reference types="cypress" />
|
||||
// redmine.verdnatura.es/issues/8417
|
||||
describe('ClaimPhoto', () => {
|
||||
beforeEach(() => {
|
||||
const claimId = 1;
|
||||
|
@ -23,13 +22,21 @@ describe('ClaimPhoto', () => {
|
|||
cy.get('.q-notification__message').should('have.text', 'Data saved');
|
||||
});
|
||||
|
||||
it('should open first image dialog change to second and close', () => {
|
||||
cy.dataCy('file-1').click();
|
||||
cy.get('.q-carousel__next-arrow > .q-btn > .q-btn__content > .q-icon').click();
|
||||
it.only('should open first image dialog change to second and close', () => {
|
||||
cy.waitForElement('[data-cy="file-1"] .q-img__image--loaded');
|
||||
cy.get(
|
||||
':nth-child(1) > .q-card > .q-img > .q-img__container > .q-img__image',
|
||||
).click();
|
||||
cy.get('.q-carousel__slide > .q-img > .q-img__container > .q-img__image').should(
|
||||
'be.visible',
|
||||
);
|
||||
|
||||
cy.get('.q-carousel__control > button').as('nextButton').click();
|
||||
|
||||
cy.get(
|
||||
'.q-dialog__inner > .q-toolbar > .q-btn > .q-btn__content > .q-icon',
|
||||
).click();
|
||||
|
||||
cy.get('.q-carousel__slide > .q-img > .q-img__container > .q-img__image').should(
|
||||
'not.be.visible',
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue