mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 00:26:34 +03:00
Do not reload page extra times in e2e tests
This commit is contained in:
parent
5438770267
commit
1dabeebb3d
|
@ -1,33 +1,29 @@
|
|||
describe('Standalone bundle test', function() {
|
||||
describe('OAS3 mode', () => {
|
||||
before(() => {
|
||||
cy.visit('e2e/standalone.html');
|
||||
});
|
||||
|
||||
it('Render and check no errors', function() {
|
||||
cy
|
||||
.visit('e2e/standalone.html')
|
||||
.get('.api-info')
|
||||
.should('exist');
|
||||
cy.get('.api-info').should('exist');
|
||||
});
|
||||
|
||||
it('Render and click all the menu items', function() {
|
||||
cy
|
||||
.visit('e2e/standalone.html')
|
||||
.get('.menu-content li')
|
||||
.click({ multiple: true, force: true });
|
||||
cy.get('.menu-content li').click({ multiple: true, force: true });
|
||||
});
|
||||
});
|
||||
|
||||
describe('OAS2 compatibility mode', () => {
|
||||
before(() => {
|
||||
cy.visit('e2e/standalone.html');
|
||||
});
|
||||
|
||||
it('Render and check no errors', function() {
|
||||
cy
|
||||
.visit('e2e/standalone.html')
|
||||
.get('.api-info')
|
||||
.should('exist');
|
||||
cy.get('.api-info').should('exist');
|
||||
});
|
||||
|
||||
it('Render and click all the menu items', function() {
|
||||
cy
|
||||
.visit('e2e/standalone.html')
|
||||
.get('.menu-content li')
|
||||
.click({ multiple: true, force: true });
|
||||
cy.get('.menu-content li').click({ multiple: true, force: true });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user