Skip to content

Commit

Permalink
Add timeout to selectVisualizationType-function and extend time toler…
Browse files Browse the repository at this point in the history
…ance in timeRangeSelector test (#3173)
  • Loading branch information
Marcelfrueh authored Aug 22, 2024
1 parent e9f14f0 commit 4ead8a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/cypress/support/utils/datalake/DataLakeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export class DataLakeUtils {
*/
public static selectVisualizationType(type: string | 'Table') {
// Select visualization type
cy.dataCy('data-explorer-select-visualization-type')
cy.dataCy('data-explorer-select-visualization-type', { timeout: 10000 })
.click()
.get('mat-option')
.contains(type)
Expand Down
4 changes: 2 additions & 2 deletions ui/cypress/tests/datalake/timeRangeSelectors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('Test Time Range Selectors in Data Explorer', () => {
isTimeWithinTolerance(
actualTime as string,
expectedDate,
5,
10,
),
).to.be.true;
});
Expand All @@ -92,7 +92,7 @@ describe('Test Time Range Selectors in Data Explorer', () => {
isTimeWithinTolerance(
actualTime as string,
expectedDate,
5,
10,
),
).to.be.true;
});
Expand Down

0 comments on commit 4ead8a2

Please sign in to comment.