mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-13 11:03:46 +00:00
Added cypress e2e tests
This commit is contained in:
13
cypress/integration/chart_view.spec.js
Normal file
13
cypress/integration/chart_view.spec.js
Normal 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');
|
||||
});
|
||||
});
|
||||
12
cypress/integration/intro.spec.js
Normal file
12
cypress/integration/intro.spec.js
Normal 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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user