diff --git a/packages/matrix/tests/live-cards.spec.ts b/packages/matrix/tests/live-cards.spec.ts index 3c8b3507bf..432aa397f5 100644 --- a/packages/matrix/tests/live-cards.spec.ts +++ b/packages/matrix/tests/live-cards.spec.ts @@ -55,9 +55,13 @@ test.describe('Live Cards', () => { skipOpeningAssistant: true, }); await createRealm(page, realmName); - await page.goto(`${realmURL}hello-world`); + await page.goto( + `${realmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0`, + ); await expect( - page.locator(`[data-test-card="${realmURL}hello-world"]`), + page.locator( + `[data-test-card="${realmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]`, + ), ).toContainText('Hello World'); // assert that instance updates are live bound @@ -66,7 +70,7 @@ test.describe('Live Cards', () => { '..', 'user1', realmName, - 'hello-world.json', + 'HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0.json', ); await expect( page.locator('[data-test-realm-indexing-indicator]'), @@ -90,7 +94,9 @@ test.describe('Live Cards', () => { page.locator('[data-test-realm-indexing-indicator]'), ).toHaveCount(1); await expect( - page.locator(`[data-test-card="${realmURL}hello-world"]`), + page.locator( + `[data-test-card="${realmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]`, + ), ).toContainText('Hello Mars'); await expect( page.locator('[data-test-realm-indexing-indicator]'), diff --git a/packages/matrix/tests/registration-with-token.spec.ts b/packages/matrix/tests/registration-with-token.spec.ts index 71ccc7b6da..a3e662340c 100644 --- a/packages/matrix/tests/registration-with-token.spec.ts +++ b/packages/matrix/tests/registration-with-token.spec.ts @@ -187,7 +187,9 @@ test.describe('User Registration w/ Token - isolated realm server', () => { ).toHaveCount(1); await showAllCards(page); await expect( - page.locator(`[data-test-cards-grid-item="${newRealmURL}hello-world"]`), + page.locator( + `[data-test-cards-grid-item="${newRealmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]`, + ), ).toHaveCount(1); await page.locator(`[data-test-workspace-chooser-toggle]`).click(); await expect(page.locator('[data-test-workspace-chooser]')).toHaveCount(1); @@ -262,9 +264,13 @@ test.describe('User Registration w/ Token - isolated realm server', () => { // assert that logged in user can navigate directly to card in private realm without // being asked to login - await page.goto(`${newRealmURL}hello-world`); + await page.goto( + `${newRealmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0`, + ); await expect( - page.locator(`[data-test-card="${newRealmURL}hello-world"]`), + page.locator( + `[data-test-card="${newRealmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]`, + ), ).toContainText('Hello World'); // assert that non-logged in user is prompted to login before navigating @@ -273,12 +279,14 @@ test.describe('User Registration w/ Token - isolated realm server', () => { await assertLoggedOut(page); await login(page, 'user1', 'mypassword1!', { - url: `${newRealmURL}hello-world`, + url: `${newRealmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0`, skipOpeningAssistant: true, }); await assertLoggedIn(page, { displayName: 'Test User' }); await expect( - page.locator(`[data-test-card="${newRealmURL}hello-world"]`), + page.locator( + `[data-test-card="${newRealmURL}HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]`, + ), ).toHaveCount(1); let auth = await loginUser(`user1`, 'mypassword1!');