Skip to content

Commit 0aabc97

Browse files
committed
Update recommendations-page.ts
Delete unused nth from verifyVoteDisabled
1 parent 109bcc3 commit 0aabc97

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/e2e/pageObjects/recommendations-page.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {Selector, t} from 'testcafe';
22

33
export class RecommendationsPage {
4-
//CSS Selectors
54
veryUsefulVoteBtn = Selector('[data-testid=very-useful-vote-btn]').nth(0);
65
usefulVoteBtn = Selector('[data-testid=useful-vote-btn]').nth(0);
76
notUsefulVoteBtn = Selector('[data-testid=not-useful-vote-btn]').nth(0);
@@ -24,11 +23,11 @@ export class RecommendationsPage {
2423

2524
async verifyVoteDisabled(): Promise<void>{
2625
// Verify that user can rate recommendations with one of 3 existing types at the same time
27-
await t.expect(this.veryUsefulVoteBtn.nth(0)
26+
await t.expect(this.veryUsefulVoteBtn
2827
.hasAttribute('disabled')).ok();
29-
await t.expect(this.usefulVoteBtn.nth(0)
28+
await t.expect(this.usefulVoteBtn
3029
.hasAttribute('disabled')).ok();
31-
await t.expect(this.notUsefulVoteBtn.nth(0)
30+
await t.expect(this.notUsefulVoteBtn
3231
.hasAttribute('disabled')).ok();
3332
}
3433
}

0 commit comments

Comments
 (0)