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