Add base test env

pull/311/head
Vladimir Volek 5 years ago
parent e750fc2da6
commit f5556d09c5

@ -92,6 +92,8 @@
"babel-preset-env": "^1.6.0",
"babel-preset-jest": "^23.2.0",
"babel-preset-react": "^6.24.1",
"cypress": "^3.1.4",
"cypress-image-snapshot": "^3.0.0",
"eslint": "^4",
"eslint-config-airbnb": "^17.0.0",
"eslint-import-resolver-babel-module": "^4.0.0",

@ -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);
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,3 @@
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
addMatchImageSnapshotCommand();

@ -0,0 +1 @@
import './commands';

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save