mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-10 16:46:16 +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');
|
||||
});
|
||||
});
|
||||
@@ -349,6 +349,7 @@ export class TopBar extends React.Component<
|
||||
setValue(value: string): void;
|
||||
})
|
||||
}
|
||||
id="search"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user