mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-08-01 08:31:47 +00:00
Added integration test for the search box
This commit is contained in:
12
cypress/integration/search.spec.js
Normal file
12
cypress/integration/search.spec.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