0
1
Fork 0

Fix tests and add new test to Catalog

This commit is contained in:
William Buezas 2024-12-10 08:57:57 -03:00
parent 99c1386627
commit 3aad2eaeec
4 changed files with 14 additions and 1 deletions

View File

@ -28,6 +28,7 @@ const { t } = useI18n();
height="190px" height="190px"
rounded="bottom" rounded="bottom"
zoom-size="1600x900" zoom-size="1600x900"
data-testid="catalogCardImage"
/> />
<div <div
class="column" class="column"
@ -117,6 +118,7 @@ const { t } = useI18n();
rounded-borders="full" rounded-borders="full"
class="q-mr-md" class="q-mr-md"
zoom-size="1600x900" zoom-size="1600x900"
data-testid="catalogCardImage"
/> />
</template> </template>
<template #content> <template #content>

View File

@ -192,6 +192,7 @@
:item="_item" :item="_item"
:view-mode="viewMode" :view-mode="viewMode"
@click="showItem(_item)" @click="showItem(_item)"
data-testid="catalogCardElement"
/> />
</div> </div>
<QDialog v-model="showItemDialog" @hide="resetAmounts()"> <QDialog v-model="showItemDialog" @hide="resetAmounts()">

View File

@ -42,4 +42,14 @@ describe('CatalogView', () => {
cy.dataCy('catalogGoToBasketButton').click(); cy.dataCy('catalogGoToBasketButton').click();
cy.url().should('contain', '/#/ecomerce/basket'); cy.url().should('contain', '/#/ecomerce/basket');
}); });
it('Open item details and image exists', () => {
// cy.resetDB();
cy.login('developer');
cy.createOrderReceiveFlow();
cy.addItemToBasketFlow();
cy.dataCy('catalogCardElement').first().click();
cy.wait(200);
cy.dataCy('catalogCardImage').find('img').should('exist');
});
}); });

File diff suppressed because one or more lines are too long