mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-23 15:06:14 +00:00
Test that the right panel opens when when the chart opens
This commit is contained in:
@@ -2,12 +2,18 @@ describe('Chart view', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('/view?handleCors=false&url=https%3A%2F%2Fraw.githubusercontent.com%2FPeWu%2Ftopola%2Fmaster%2Fdemo%2Fdata%2Ffamily.ged');
|
cy.visit('/view?handleCors=false&url=https%3A%2F%2Fraw.githubusercontent.com%2FPeWu%2Ftopola%2Fmaster%2Fdemo%2Fdata%2Ffamily.ged');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('loads data from URL', () => {
|
it('loads data from URL', () => {
|
||||||
cy.contains('Bonifacy');
|
cy.contains('Bonifacy');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Animates chart', () => {
|
it('Animates chart', () => {
|
||||||
cy.contains('Chike').should('not.exist');
|
cy.contains('Chike').should('not.exist');
|
||||||
cy.contains('Radobod').click({force: true});
|
cy.contains('Radobod').click({force: true});
|
||||||
cy.contains('Chike');
|
cy.contains('Chike');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('shows the right panel', () => {
|
||||||
|
cy.contains('a random note');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user