Skip to content

Commit a29eec2

Browse files
authored
Merge pull request #169 from infrawatch/mgirgis-UI-enhancement
[UI][cypress test] Increase Timeout
2 parents a6e62c9 + 84b354a commit a29eec2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

roles/telemetry_graphing/files/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { defineConfig } = require('cypress')
22
module.exports = defineConfig({
33
e2e: {
4-
baseUrl: 'https://console-openshift-console.apps-crc.testing',
4+
baseUrl: 'https://console-openshift-console.apps-crc.testing/login',
55
specPattern: 'cypress/integration/**/*.{js,jsx,ts,tsx}',
66
supportFile: false,
77
},

roles/telemetry_graphing/files/dashboard-openstack-cloud.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ describe('OpenShift Console Dashboard Test', () => {
1919
}
2020
});
2121

22+
2223
});
2324

2425
it('should load and validate the OpenStack dashboards', () => {
@@ -36,11 +37,9 @@ describe('OpenShift Console Dashboard Test', () => {
3637
dashboards.forEach(dashboard => {
3738
cy.visit(`https://console-openshift-console.apps-crc.testing/monitoring/dashboards${dashboard.url}`);
3839

39-
cy.wait(5000);
40-
4140
// Wait for the dashboard to load and take a screenshot
42-
cy.get('div[data-test-id="dashboard"]', { timeout: 10000 })
43-
.find('[data-test-id="panel-"], [data-test-id="panel-cpu"], [data-test-id="panel-overview"]')
41+
cy.get('div[data-test-id="dashboard"]', { timeout: 50000 })
42+
.find('[data-test-id^="panel-"]')
4443

4544
cy.wait(5000);
4645
cy.screenshot(dashboard.screenshot);

0 commit comments

Comments
 (0)