2018-07-16 18:29:36 +03:00
|
|
|
describe('Standalone bundle test', () => {
|
2018-02-17 22:27:15 +03:00
|
|
|
function baseCheck(name: string, url: string) {
|
|
|
|
describe(name, () => {
|
|
|
|
before(() => {
|
|
|
|
cy.visit(url);
|
|
|
|
});
|
|
|
|
|
2018-07-16 18:29:36 +03:00
|
|
|
it('Render and check no errors', () => {
|
2018-02-17 22:27:15 +03:00
|
|
|
cy.get('.api-info').should('exist');
|
|
|
|
});
|
|
|
|
|
2018-07-16 18:29:36 +03:00
|
|
|
it('Render and click all the menu items', () => {
|
2018-02-17 22:27:15 +03:00
|
|
|
cy.get('.menu-content li').click({ multiple: true, force: true });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
baseCheck('OAS3 mode', 'e2e/standalone.html');
|
|
|
|
baseCheck('OAS2 compatibility mode', 'e2e/standalone-compatibility.html');
|
|
|
|
});
|