fix: refs #8417 added data-cy to all files and fixed test
This commit is contained in:
parent
3d20491162
commit
b941943c6d
|
@ -228,6 +228,7 @@ function onDrag() {
|
||||||
class="rounded-borders cursor-pointer fit"
|
class="rounded-borders cursor-pointer fit"
|
||||||
@click="openDialog(media.dmsFk)"
|
@click="openDialog(media.dmsFk)"
|
||||||
v-if="!media.isVideo"
|
v-if="!media.isVideo"
|
||||||
|
:data-cy="`file-${index+1}`"
|
||||||
>
|
>
|
||||||
</QImg>
|
</QImg>
|
||||||
<video
|
<video
|
||||||
|
@ -236,6 +237,7 @@ function onDrag() {
|
||||||
muted="muted"
|
muted="muted"
|
||||||
v-if="media.isVideo"
|
v-if="media.isVideo"
|
||||||
@click="openDialog(media.dmsFk)"
|
@click="openDialog(media.dmsFk)"
|
||||||
|
:data-cy="`file-${index+1}`"
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,7 +24,7 @@ describe('ClaimPhoto', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open first image dialog change to second and close', () => {
|
it('should open first image dialog change to second and close', () => {
|
||||||
cy.get(':nth-child(1) > .q-card > .q-img > .q-img__container > .q-img__image').click();
|
cy.dataCy('file-1').click();
|
||||||
cy.get('.q-carousel__next-arrow > .q-btn > .q-btn__content > .q-icon').click();
|
cy.get('.q-carousel__next-arrow > .q-btn > .q-btn__content > .q-icon').click();
|
||||||
|
|
||||||
cy.get(
|
cy.get(
|
||||||
|
|
Loading…
Reference in New Issue