mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
21 lines
577 B
TypeScript
21 lines
577 B
TypeScript
|
describe('Standalone bundle test', function() {
|
||
|
function baseCheck(name: string, url: string) {
|
||
|
describe(name, () => {
|
||
|
before(() => {
|
||
|
cy.visit(url);
|
||
|
});
|
||
|
|
||
|
it('Render and check no errors', function() {
|
||
|
cy.get('.api-info').should('exist');
|
||
|
});
|
||
|
|
||
|
it('Render and click all the menu items', function() {
|
||
|
cy.get('.menu-content li').click({ multiple: true, force: true });
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
|
||
|
baseCheck('OAS3 mode', 'e2e/standalone.html');
|
||
|
baseCheck('OAS2 compatibility mode', 'e2e/standalone-compatibility.html');
|
||
|
});
|