-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E Tests: Reduce default timeout (#10863)
* e2e tests: reducedefault timeout to 10s * Use timeouts in cluster manager test * Fix timeout for cluster deletion * Try even shorter timeout * Revert back to 10s * Address PR feedback * Use common type for options * Fix lint * Fix lint - too many blank lines * Increase timeout for terminal * Improve reliability of the Istio tests * Fix lint issues * Fix typos in refactor to PO * Fix typo in tab name * Add resilience for the docs test * Add timeout for extensions test * Add test resilience for docs page * Fix lint by removing trailing spaces * Add test resilience * Fix link opening exception handling * Fix merge issue * Fix whitespace * Fix indentation * Update extensions.spec.ts * Fix lint and use standard timeout option * Fix merge issue and revert some extra changes * Revert extra test changes * Remove test change for extensions
- Loading branch information
Showing
23 changed files
with
195 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
cypress/e2e/po/pages/explorer/charts/tabs/alerting-tab.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import CheckboxInputPo from '@/cypress/e2e/po/components/checkbox-input.po'; | ||
import { MonitoringTab } from './monitoring-tab.po'; | ||
|
||
export class AlertingTab extends MonitoringTab { | ||
tabID(): string { | ||
return 'alerting'; | ||
} | ||
|
||
deployCheckbox(): CheckboxInputPo { | ||
return new CheckboxInputPo(cy.get('[aria-label="Deploy Alertmanager"]').parent().parent()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import CheckboxInputPo from '@/cypress/e2e/po/components/checkbox-input.po'; | ||
import { MonitoringTab } from './monitoring-tab.po'; | ||
|
||
export class IstioTab extends MonitoringTab { | ||
tabID(): string { | ||
return 'istio'; | ||
} | ||
|
||
enableIngressGatewayCheckbox(): CheckboxInputPo { | ||
return new CheckboxInputPo(cy.get('[aria-label="Enable Ingress Gateway"]').parent().parent()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
cypress/e2e/po/pages/explorer/charts/tabs/monitoring-tab.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import ComponentPo from '@/cypress/e2e/po/components/component.po'; | ||
|
||
export class MonitoringTab extends ComponentPo { | ||
constructor(selector = '.dashboard-root') { | ||
super(selector); | ||
} | ||
|
||
// Scroll to bottom of tab view | ||
scrollToTabBottom() { | ||
cy.get('.main-layout > .outlet > .outer-container').scrollTo('bottom'); | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
cypress/e2e/po/pages/explorer/charts/tabs/prometheus-tab.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.