diff --git a/src/pages/Ecomerce/CatalogCard.vue b/src/pages/Ecomerce/CatalogCard.vue
index 611ad1a2..66287664 100644
--- a/src/pages/Ecomerce/CatalogCard.vue
+++ b/src/pages/Ecomerce/CatalogCard.vue
@@ -28,6 +28,7 @@ const { t } = useI18n();
height="190px"
rounded="bottom"
zoom-size="1600x900"
+ data-testid="catalogCardImage"
/>
diff --git a/src/pages/Ecomerce/CatalogView.vue b/src/pages/Ecomerce/CatalogView.vue
index 114b48e0..134875c4 100644
--- a/src/pages/Ecomerce/CatalogView.vue
+++ b/src/pages/Ecomerce/CatalogView.vue
@@ -192,6 +192,7 @@
:item="_item"
:view-mode="viewMode"
@click="showItem(_item)"
+ data-testid="catalogCardElement"
/>
diff --git a/src/test/cypress/integration/catalog/CatalogView.spec.js b/src/test/cypress/integration/catalog/CatalogView.spec.js
index a01a0062..01688a0e 100644
--- a/src/test/cypress/integration/catalog/CatalogView.spec.js
+++ b/src/test/cypress/integration/catalog/CatalogView.spec.js
@@ -42,4 +42,14 @@ describe('CatalogView', () => {
cy.dataCy('catalogGoToBasketButton').click();
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');
+ });
});
diff --git a/src/test/cypress/integration/checkout/CheckoutStepper.commands.js b/src/test/cypress/integration/checkout/CheckoutStepper.commands.js
index f9ae426c..827bab94 100644
--- a/src/test/cypress/integration/checkout/CheckoutStepper.commands.js
+++ b/src/test/cypress/integration/checkout/CheckoutStepper.commands.js
@@ -1,5 +1,5 @@
const checkoutNextStep = () => {
- cy.dataCy('checkoutStepperRightButton').should('be.visible').click();
+ cy.dataCy('checkoutStepperRightButton').last().should('be.visible').click();
};
Cypress.Commands.add('createOrderReceive', () => {
diff --git a/src/test/cypress/reports/index.html b/src/test/cypress/reports/index.html
new file mode 100644
index 00000000..06da06c7
--- /dev/null
+++ b/src/test/cypress/reports/index.html
@@ -0,0 +1,17 @@
+
+Hedera-Web E2E Reporter
\ No newline at end of file
diff --git a/src/test/cypress/support/commands.js b/src/test/cypress/support/commands.js
index b4ec3d42..2f182661 100644
--- a/src/test/cypress/support/commands.js
+++ b/src/test/cypress/support/commands.js
@@ -36,6 +36,7 @@ requireCommands.keys().forEach(requireCommands);
// Common commands
Cypress.Commands.add('selectOption', (selector, option) => {
cy.waitForElement(selector);
+ cy.wait(400);
cy.get(selector).click();
cy.get('.q-menu .q-item').contains(option).click();
});
@@ -80,7 +81,7 @@ Cypress.Commands.add('setSessionStorage', (key, value) => {
});
Cypress.Commands.add('resetDB', () => {
- cy.exec('npm run resetDatabase');
+ cy.exec('pnpm run db');
});
Cypress.Commands.add('setConfirmDialog', () => {