Skip to content

Commit

Permalink
test: fix phase correction select component selector
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Mar 13, 2024
1 parent 106bbe2 commit 949fb4b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test-e2e/NmriumPage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,16 @@ export default class NmriumPage {
.waitFor({ state: 'visible' });
}

const selectLocator = this.page.getByRole('combobox');
if (mode === 'automatic') {
const select = this.page.locator('select');
await select.selectOption('automatic');
await selectLocator.click();
await this.page.getByRole('option', { name: 'automatic' }).click();
}
if (mode === 'absolute') {
const select = this.page.locator('select');
await select.selectOption('absolute');
await selectLocator.click();
await this.page
.getByRole('option', { name: 'Convert to absolute spectrum' })
.click();
}
await this.page.click('button >> text=Apply', { delay: 200 });

Expand Down

0 comments on commit 949fb4b

Please sign in to comment.