Skip to content

Commit

Permalink
Merge pull request #1468 from appknox/dynamic-scan-e2e-fix
Browse files Browse the repository at this point in the history
dynamic scan e2e fix
  • Loading branch information
future-pirate-king authored Oct 9, 2024
2 parents 244a8e0 + 43de70d commit ba76136
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
9 changes: 5 additions & 4 deletions cypress/tests/dynamic-scan.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit ba76136

Please sign in to comment.