Skip to content

Commit

Permalink
fix: remove nth selector from test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlczapski committed Apr 22, 2024
1 parent 55bf4e5 commit d2331d6
Showing 1 changed file with 18 additions and 27 deletions.
45 changes: 18 additions & 27 deletions tests/model/scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,24 @@ export class Scenario {

public async selectCatchments() {
await this.page.waitForSelector('canvas');
await this.page
.locator('canvas')
.nth(1)
.click({
position: {
x: 561,
y: 337,
},
});
await this.page
.locator('canvas')
.nth(1)
.click({
position: {
x: 585,
y: 478,
},
});
await this.page
.locator('canvas')
.nth(1)
.click({
position: {
x: 685,
y: 456,
},
});
await this.page.locator('canvas').click({
position: {
x: 561,
y: 337,
},
});
await this.page.locator('canvas').click({
position: {
x: 585,
y: 478,
},
});
await this.page.locator('canvas').click({
position: {
x: 685,
y: 456,
},
});
await this.page.getByRole('button', { name: 'Continue' }).click();
}

Expand Down

0 comments on commit d2331d6

Please sign in to comment.