mirror of https://github.com/trezor/trezor-wallet
parent
e750fc2da6
commit
f5556d09c5
@ -0,0 +1,24 @@
|
||||
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,7 @@
|
||||
const {
|
||||
addMatchImageSnapshotPlugin,
|
||||
} = require('cypress-image-snapshot/plugin');
|
||||
|
||||
module.exports = (on) => {
|
||||
addMatchImageSnapshotPlugin(on);
|
||||
};
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,3 @@
|
||||
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
|
||||
|
||||
addMatchImageSnapshotCommand();
|
@ -0,0 +1 @@
|
||||
import './commands';
|
Loading…
Reference in new issue