28 lines
912 B
TypeScript
28 lines
912 B
TypeScript
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);
|
|
});
|
|
});
|