diff --git a/cypress.config.ts b/cypress.config.ts index 0444e1497..dc052d1ee 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -17,7 +17,7 @@ export default defineConfig({ setupNodeEvents(on) { on('before:browser:launch', (browser, launchOptions) => { if (browser.family === 'chromium' && browser.name !== 'electron') { - launchOptions.args.push('--window-size=1350,768'); + launchOptions.args.push('--window-size=1350,1024'); launchOptions.args.push('--force-device-scale-factor=1'); } diff --git a/cypress/tests/dynamic-scan.spec.ts b/cypress/tests/dynamic-scan.spec.ts index e721a3ba9..cfe1a3bd7 100644 --- a/cypress/tests/dynamic-scan.spec.ts +++ b/cypress/tests/dynamic-scan.spec.ts @@ -134,9 +134,9 @@ Cypress.on('uncaught:exception', () => { return false; }); -describe.skip('Dynamic Scan', () => { +describe('Dynamic Scan', () => { beforeEach(() => { - cy.viewport(1450, 962); + cy.viewport(1450, 1450); // Hide websocket and analyses logs networkActions.hideNetworkLogsFor({ ...API_ROUTES.websockets }); @@ -372,11 +372,12 @@ describe.skip('Dynamic Scan', () => { .should('exist') .as(DYNAMIC_SCAN_STOP_BTN_ALIAS); + // open device in fullscreen + cy.findByTestId('manualDast-fullscreenBtn').should('exist').click(); + // wait for screen to load cy.wait(5000); - cy.findByTestId('manualDast-fullscreenBtn').should('exist').click(); - // trigger app interaction app.performInteraction(app.interactions, app);