mirror of https://github.com/trezor/trezor-wallet
parent
51b878e5fe
commit
d6f1688e1c
@ -1,24 +0,0 @@
|
||||
describe('Landing Page', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('http://localhost:8081/#/');
|
||||
cy.get('[data-test=beta-disclaimer-button]').click();
|
||||
});
|
||||
|
||||
it('top menu', () => {
|
||||
cy.get('[data-test=top-menu]')
|
||||
.should('be.visible')
|
||||
.matchImageSnapshot();
|
||||
});
|
||||
|
||||
it('main text', () => {
|
||||
cy.get('[data-test=landing-main-title]')
|
||||
.should('be.visible')
|
||||
.matchImageSnapshot();
|
||||
});
|
||||
|
||||
it('footer', () => {
|
||||
cy.get('[data-test=footer]')
|
||||
.should('be.visible')
|
||||
.matchImageSnapshot();
|
||||
});
|
||||
});
|
@ -0,0 +1,12 @@
|
||||
describe('Left Menu', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('https://localhost:8080/#/');
|
||||
cy.getTestElement('Modal__disclaimer__button__confirm').click();
|
||||
});
|
||||
|
||||
it('divider', () => {
|
||||
cy.getTestElement('Main__page__coin__menu__divider')
|
||||
.should('be.visible')
|
||||
.matchImageSnapshot();
|
||||
});
|
||||
});
|
Before Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 13 KiB |
@ -1,3 +1,5 @@
|
||||
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
|
||||
|
||||
addMatchImageSnapshotCommand();
|
||||
addMatchImageSnapshotCommand();
|
||||
|
||||
Cypress.Commands.add('getTestElement', selector => cy.get(`[data-test="${selector}"]`));
|
||||
|
Loading…
Reference in new issue