Skip to content

Commit

Permalink
chore: channel-management test locators
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Mar 12, 2024
1 parent d22ced1 commit 48051cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/meteor/tests/e2e/page-objects/fragments/home-sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export class HomeSidenav {
}

get checkboxPrivateChannel(): Locator {
return this.page.locator('role=dialog[name="Create Channel"] >> label >> text="Private"');
return this.page.locator('label', {has: this.page.getByRole('checkbox', {name: 'Private'})});
}

get checkboxEncryption(): Locator {
return this.page.locator('role=dialog[name="Create Channel"] >> label >> text="Encrypted"');
return this.page.locator('label', {has: this.page.getByRole('checkbox', {name: 'Encrypted'})});
}

get checkboxReadOnly(): Locator {
return this.page.locator('role=dialog[name="Create Channel"] >> label >> text="Read Only"');
return this.page.locator('label', {has: this.page.getByRole('checkbox', {name: 'Read Only'})});
}

get inputChannelName(): Locator {
Expand Down

0 comments on commit 48051cd

Please sign in to comment.