Skip to content

Commit

Permalink
test: change name locator on getCollapseGroupByName to Conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Oct 23, 2024
1 parent f728b24 commit 0644044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/meteor/tests/e2e/feature-preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test.describe.serial('feature preview', () => {

test('should expand/collapse sidebar groups', async ({ page }) => {
await page.goto('/home');
const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Teams');
const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Conversations');
let isExpanded: boolean;

await teamsCollapseGroup.click();
Expand All @@ -94,7 +94,7 @@ test.describe.serial('feature preview', () => {
test('should expand/collapse sidebar groups with keyboard', async ({ page }) => {
await page.goto('/home');

const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Teams');
const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Conversations');
let isExpanded: boolean;

await teamsCollapseGroup.focus();
Expand All @@ -110,7 +110,7 @@ test.describe.serial('feature preview', () => {
test('should be able to use keyboard to navigate through sidebar items', async ({ page }) => {
await page.goto('/home');

const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Teams');
const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Conversations');
await teamsCollapseGroup.focus();

const dataIndex = await teamsCollapseGroup.locator('../..').getAttribute('data-index');
Expand All @@ -123,7 +123,7 @@ test.describe.serial('feature preview', () => {
test('should persist collapsed/expanded groups after page reload', async ({ page }) => {
await page.goto('/home');

const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Teams');
const teamsCollapseGroup = poHomeChannel.sidenav.getCollapseGroupByName('Conversations');
await teamsCollapseGroup.click();
const isExpanded = await teamsCollapseGroup.getAttribute('aria-expanded');

Expand Down

0 comments on commit 0644044

Please sign in to comment.