redoc/e2e/standalone.e2e.ts
2017-11-20 12:05:54 +02:00

34 lines
851 B
TypeScript

describe('Standalone bundle test', function() {
describe('OAS3 mode', () => {
it('Render and check no errors', function() {
cy
.visit('e2e/standalone.html')
.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 });
});
});
describe('OAS2 compatibility mode', () => {
it('Render and check no errors', function() {
cy
.visit('e2e/standalone.html')
.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 });
});
});
});