mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-17 17:21:48 +00:00
upgrade cypress version
This commit is contained in:
19
cypress/e2e/chart_view.cy.js
Normal file
19
cypress/e2e/chart_view.cy.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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');
|
||||
});
|
||||
|
||||
it('shows the right panel', () => {
|
||||
cy.contains('a random note');
|
||||
});
|
||||
});
|
||||
11
cypress/e2e/embedded.cy.js
Normal file
11
cypress/e2e/embedded.cy.js
Normal file
@@ -0,0 +1,11 @@
|
||||
describe('Embedded mode', () => {
|
||||
it('shows data', () => {
|
||||
const url = 'https://pewu.github.io/topola-embedded/#' + Cypress.config('baseUrl');
|
||||
cy.visit(url);
|
||||
cy.get('iframe')
|
||||
.its('0.contentDocument.body').should('not.be.empty')
|
||||
.then(cy.wrap)
|
||||
.find('#root')
|
||||
.contains('Bonifacy');
|
||||
});
|
||||
});
|
||||
12
cypress/e2e/intro.cy.js
Normal file
12
cypress/e2e/intro.cy.js
Normal file
@@ -0,0 +1,12 @@
|
||||
describe('Intro page', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/');
|
||||
});
|
||||
it('displays intro text', () => {
|
||||
cy.contains('Examples');
|
||||
});
|
||||
it('displays menu', () => {
|
||||
cy.contains('Open file');
|
||||
cy.contains('Load from URL');
|
||||
});
|
||||
});
|
||||
12
cypress/e2e/search.cy.js
Normal file
12
cypress/e2e/search.cy.js
Normal file
@@ -0,0 +1,12 @@
|
||||
describe('Chart view', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/view?handleCors=false&url=https%3A%2F%2Fraw.githubusercontent.com%2FPeWu%2Ftopola%2Fmaster%2Fdemo%2Fdata%2Ffamily.ged');
|
||||
});
|
||||
it('Search works', () => {
|
||||
cy.contains('Chike').should('not.exist');
|
||||
cy.get('#search').type('chik');
|
||||
cy.contains('Chike');
|
||||
cy.get('#search').type('{enter}');
|
||||
cy.get('#content').contains('Chike');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user