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');
|
2021-05-31 19:23:05 +03:00
|
|
|
baseCheck('OAS3.1 mode', 'e2e/standalone-3-1.html');
|
2018-02-17 22:27:15 +03:00
|
|
|
baseCheck('OAS2 compatibility mode', 'e2e/standalone-compatibility.html');
|
|
|
|
});
|