Skip to content

Commit 02eb9c7

Browse files
authored
Merge pull request Kitware#780 from PaulHax/fix-e2e-tests
chore(test): fix sample-rendering.e2e.ts and layers.e2e.ts
2 parents c380f50 + e4ed636 commit 02eb9c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: E2E Testing on ${{ matrix.os }}
1111
runs-on: ${{ matrix.os }}
1212
env:
13-
DOWNLOAD_TIMEOUT: 60000
13+
DOWNLOAD_TIMEOUT: 90000
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:

tests/pageobjects/volview.page.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class VolViewPage extends Page {
6969
}
7070

7171
async getNotificationsCount() {
72-
const badge = await this.notifications.$('span[aria-label="Badge"]');
72+
const badge = this.notifications.$('span[aria-label="Badge"]');
7373
const innerText = await badge.getText();
7474
if (innerText === '') return 0;
7575
return parseInt(innerText, 10);
@@ -94,7 +94,7 @@ class VolViewPage extends Page {
9494
}
9595

9696
async activateRectangle() {
97-
const button = await this.rectangleButton;
97+
const button = this.rectangleButton;
9898
await button.click();
9999
}
100100

@@ -119,16 +119,16 @@ class VolViewPage extends Page {
119119
}
120120

121121
async saveSession() {
122-
const save = await this.saveButton;
122+
const save = this.saveButton;
123123
await save.click();
124124

125-
const input = await this.saveSessionFilenameInput;
125+
const input = this.saveSessionFilenameInput;
126126
const id = getId();
127127
const fileName = `${id}-session.volview.zip`;
128128

129129
await setValueVueInput(input, fileName);
130130

131-
const confirm = await this.saveSessionConfirmButton;
131+
const confirm = this.saveSessionConfirmButton;
132132
await confirm.click();
133133

134134
cleanuptotal.addCleanup(async () => {

0 commit comments

Comments
 (0)