Skip to content

Commit

Permalink
Improve resilience of create-realm matrix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemelia committed Feb 19, 2025
1 parent ed59655 commit 34025a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/matrix/tests/create-realm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ test.describe('Create Realm via Dashboard', () => {
page.locator(`[data-test-stack-card="${newRealmURL}index"]`),
).toBeVisible();

const filterListElements = page.locator(
'[data-test-boxel-filter-list-button]',
const filterListItemSelector = '[data-test-boxel-filter-list-button]';
await page.waitForFunction(
(selector) => document.querySelectorAll(selector).length > 1,
filterListItemSelector,
);
const count = await filterListElements.count();
expect(count).toBeGreaterThan(1);

await page.locator(`[data-test-workspace-chooser-toggle]`).click();
await expect(
Expand Down

0 comments on commit 34025a9

Please sign in to comment.