@@ -187,7 +187,9 @@ test.describe('User Registration w/ Token - isolated realm server', () => {
187
187
) . toHaveCount ( 1 ) ;
188
188
await showAllCards ( page ) ;
189
189
await expect (
190
- page . locator ( `[data-test-cards-grid-item="${ newRealmURL } hello-world"]` ) ,
190
+ page . locator (
191
+ `[data-test-cards-grid-item="${ newRealmURL } HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]` ,
192
+ ) ,
191
193
) . toHaveCount ( 1 ) ;
192
194
await page . locator ( `[data-test-workspace-chooser-toggle]` ) . click ( ) ;
193
195
await expect ( page . locator ( '[data-test-workspace-chooser]' ) ) . toHaveCount ( 1 ) ;
@@ -262,23 +264,29 @@ test.describe('User Registration w/ Token - isolated realm server', () => {
262
264
263
265
// assert that logged in user can navigate directly to card in private realm without
264
266
// being asked to login
265
- await page . goto ( `${ newRealmURL } hello-world` ) ;
267
+ await page . goto (
268
+ `${ newRealmURL } HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0` ,
269
+ ) ;
266
270
await expect (
267
- page . locator ( `[data-test-card="${ newRealmURL } hello-world"]` ) ,
268
- ) . toContainText ( 'Hello World' ) ;
271
+ page . locator (
272
+ `[data-test-card="${ newRealmURL } HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]` ,
273
+ ) ,
274
+ ) . toContainText ( 'Some folks say' ) ;
269
275
270
276
// assert that non-logged in user is prompted to login before navigating
271
277
// directly to card in private repo
272
278
await logout ( page ) ;
273
279
await assertLoggedOut ( page ) ;
274
280
275
281
await login ( page , 'user1' , 'mypassword1!' , {
276
- url : `${ newRealmURL } hello-world ` ,
282
+ url : `${ newRealmURL } HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0 ` ,
277
283
skipOpeningAssistant : true ,
278
284
} ) ;
279
285
await assertLoggedIn ( page , { displayName : 'Test User' } ) ;
280
286
await expect (
281
- page . locator ( `[data-test-card="${ newRealmURL } hello-world"]` ) ,
287
+ page . locator (
288
+ `[data-test-card="${ newRealmURL } HelloWorld/47c0fc54-5099-4e9c-ad0d-8a58572d05c0"]` ,
289
+ ) ,
282
290
) . toHaveCount ( 1 ) ;
283
291
284
292
let auth = await loginUser ( `user1` , 'mypassword1!' ) ;
0 commit comments