Added cypress e2e tests

This commit is contained in:
Przemek Wiech
2020-02-14 23:46:46 +01:00
parent 543a910c2f
commit 358f6c6a7d
6 changed files with 937 additions and 37 deletions

View File

@@ -0,0 +1,13 @@
describe('Chart view', () => {
beforeEach(() => {
cy.visit('/view?handleCors=false&url=https%3A%2F%2Fraw.githubusercontent.com%2FPeWu%2Ftopola%2Fmaster%2Fdemo%2Fdata%2Ffamily.ged');
});
it('loads data from URL', () => {
cy.contains('Bonifacy');
});
it('Animates chart', () => {
cy.contains('Chike').should('not.exist');
cy.contains('Radobod').click({force: true});
cy.contains('Chike');
});
});

View File

@@ -0,0 +1,12 @@
describe('Intro page', () => {
beforeEach(() => {
cy.visit('/');
});
it('displays intro text', () => {
cy.contains('Here are some examples');
});
it('displays menu', () => {
cy.contains('Load from URL');
cy.contains('Load from file');
});
});