mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-26 08:04:56 +01:00
b804403c42
Improve testing flow and docs * update snapshots * update snapshots * update snapshots * Add docker run instructions * Hide image snapshot execution behind an env flag * Simplify package.json scripts and improve docs * Merge 'origin/develop' into feature/tests-and-docs * Update snapshots * Add wait to container test * Update snapshot Approved-by: Paulo Veiga
29 lines
1.1 KiB
JavaScript
29 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.matchImageSnapshot('viewmode');
|
|
});
|
|
it('the playground container.html page should match its snapshot', () => {
|
|
cy.visit('/container.html');
|
|
// TODO: wait for mind map to load instead of an arbitrary number of ms
|
|
cy.wait(5000);
|
|
cy.matchImageSnapshot('container');
|
|
});
|
|
it('the playground editor.html page should match its snapshot', () => {
|
|
cy.visit('/editor.html');
|
|
// TODO: wait for mind map to load instead of an arbitrary number of ms
|
|
cy.wait(5000);
|
|
// TODO: why is the editor appearing twice in the snapshot?
|
|
cy.matchImageSnapshot('editor');
|
|
});
|
|
});
|