2017-11-19 13:51:59 +03:00
|
|
|
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')
|
2017-11-20 13:05:54 +03:00
|
|
|
.click({ multiple: true, force: true });
|
2017-11-19 13:51:59 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
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')
|
2017-11-20 13:05:54 +03:00
|
|
|
.click({ multiple: true, force: true });
|
2017-11-19 13:51:59 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|