mirror of
https://github.com/PeWu/topola-viewer.git
synced 2025-12-23 18:50:04 +00:00
Added cypress test to test embedded mode
This commit is contained in:
parent
f2e3120dc9
commit
7e0a72b3e9
@ -1,5 +1,6 @@
|
||||
{
|
||||
"viewportWidth": 1280,
|
||||
"viewportHeight": 1024,
|
||||
"chromeWebSecurity": false,
|
||||
"baseUrl": "http://localhost:3000/#"
|
||||
}
|
||||
|
||||
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');
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user