Skip to content

Commit 2c0c446

Browse files
committed
fix-test
Signed-off-by: Harshvir Potpose <[email protected]>
1 parent 287a29b commit 2c0c446

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/central_dashboard_angular_frontend_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ jobs:
7272
with:
7373
node-version: 16
7474

75+
- name: Setup Firefox for testing
76+
run: |
77+
sudo snap install firefox
78+
7579
- name: Install KinD
7680
run: ./testing/gh-actions/install_kind.sh
7781

components/centraldashboard-angular/frontend/cypress.config.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,32 @@ import { defineConfig } from 'cypress';
22

33
export default defineConfig({
44
e2e: {
5-
setupNodeEvents(on, config) {},
5+
setupNodeEvents(on, config) {
6+
on('before:browser:launch', (browser, launchOptions) => {
7+
if (browser.name === 'firefox') {
8+
launchOptions.args.push('--width=1280');
9+
launchOptions.args.push('--height=720');
10+
launchOptions.preferences = launchOptions.preferences || {};
11+
launchOptions.preferences['media.navigator.permission.disabled'] = true;
12+
}
13+
return launchOptions;
14+
});
15+
},
616
baseUrl: 'http://localhost:4200',
717
modifyObstructiveCode: false,
818
video: false,
19+
screenshotOnRunFailure: true,
20+
viewportWidth: 1280,
21+
viewportHeight: 720,
22+
defaultCommandTimeout: 10000,
23+
requestTimeout: 10000,
24+
responseTimeout: 10000,
25+
pageLoadTimeout: 30000,
26+
chromeWebSecurity: false,
27+
taskTimeout: 60000,
28+
retries: {
29+
runMode: 2,
30+
openMode: 0
31+
},
932
},
1033
});

0 commit comments

Comments
 (0)