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