This commit is contained in:
Sidharth Vinod
2023-09-06 13:15:04 +05:30
parent 0480339272
commit 65dabeaf15
2 changed files with 24 additions and 10 deletions

View File

@@ -127,13 +127,25 @@ describe('Configuration', () => {
});
});
it('should not render error diagram if suppressErrorRendering is set', () => {
const url = 'http://localhost:9000/regression/issue-1874.html';
cy.viewport(1440, 1024);
cy.visit(url);
cy.get('#test');
cy.matchImageSnapshot(
'configuration.spec-should-not-render-error-diagram-if-suppressErrorRendering-is-set'
);
describe('suppressErrorRendering', () => {
it('should not render error diagram if suppressErrorRendering is set', () => {
const url = 'http://localhost:9000/suppressError.html?suppressErrorRendering=true';
cy.viewport(1440, 1024);
cy.visit(url);
cy.get('#test');
cy.matchImageSnapshot(
'configuration.spec-should-not-render-error-diagram-if-suppressErrorRendering-is-set'
);
});
it('should render error diagram if suppressErrorRendering is not set', () => {
const url = 'http://localhost:9000/suppressError.html';
cy.viewport(1440, 1024);
cy.visit(url);
cy.get('#test');
cy.matchImageSnapshot(
'configuration.spec-should-render-error-diagram-if-suppressErrorRendering-is-not-set'
);
});
});
});