first commit
This commit is contained in:
27
tests/cypress/e2e/image.cy.ts
Normal file
27
tests/cypress/e2e/image.cy.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import * as wpj from '../support/wpj';
|
||||
|
||||
describe('Zobrazení obrázku v produktu', () => {
|
||||
it('Proklik na detail produktu + Kliknuti na obrazek', () => {
|
||||
cy.visit('/');
|
||||
cy.get('.c-header-sections [href*="typy-produktu"]').click();
|
||||
wpj.getNthProduct(0).find('.product-link').first().click();
|
||||
cy.get('.main-photo a').click();
|
||||
cy.wait(3000);
|
||||
});
|
||||
|
||||
it('Zavreni obrazku', () => {
|
||||
cy.get('.pswp__button--close').click();
|
||||
});
|
||||
|
||||
it('Proklik mezi obrazku u produktu', () => {
|
||||
cy.visit('/');
|
||||
cy.get('.c-header-sections [href*="typy-produktu"]').click();
|
||||
wpj.getNthProduct(1).find('.product-link').first().click();
|
||||
cy.get('.c-breadcrumbs .active').contains('Kolekce');
|
||||
cy.get('.main-photo a').click();
|
||||
cy.wait(3000);
|
||||
cy.get('.pswp__button--arrow--next').click();
|
||||
cy.get('.pswp').type('{esc}');
|
||||
cy.wait(1000);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user