mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 12:03:49 +01:00
5c2a96682d
Fix topic background * Fix Textpeer getNativePosition implementation (broken with jQuery removal) * Remove time-bound waits from cypress tests Approved-by: Paulo Veiga
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
context('Playground', () => {
|
|
it('the playground layout page should match its snapshot', () => {
|
|
// TODO: check why this error is happening, and remove this handling
|
|
cy.on('uncaught:exception', (err) => {
|
|
expect(err.message).to.include('Prediction is incorrectly positioned');
|
|
return false;
|
|
});
|
|
cy.visit('/layout.html');
|
|
cy.matchImageSnapshot('layout');
|
|
});
|
|
it('the playground viewmode.html page should match its snapshot', () => {
|
|
cy.visit('/viewmode.html');
|
|
cy.get('#mindplot.ready').should('exist');
|
|
cy.matchImageSnapshot('viewmode');
|
|
});
|
|
it('the playground container.html page should match its snapshot', () => {
|
|
cy.visit('/container.html');
|
|
cy.getIframeBody()
|
|
.find('#mindplot.ready')
|
|
.should('exist');
|
|
cy.matchImageSnapshot('container');
|
|
});
|
|
it('the playground editor.html page should match its snapshot', () => {
|
|
cy.visit('/editor.html');
|
|
cy.get('#mindplot.ready').should('exist');
|
|
// TODO: why is the editor appearing twice in the snapshot?
|
|
cy.matchImageSnapshot('editor');
|
|
});
|
|
});
|