Skip to content

Commit 09693db

Browse files
committed
test(studio): the live save-at-once spec opens the item from its list row
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
1 parent c8a49c9 commit 09693db

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎ui/e2e/live/studio-detail-save-at-once.spec.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ test('Save makes the edit live at once, and an unsaved edit is guarded on × but
3737
}
3838
});
3939
try {
40+
// The list first, then the item by its row: an in-app navigation, so the
41+
// browser's Back below is the app's own history entry (a full page load
42+
// would make Back a cross-document unload, which the reload guard asks about).
4043
await page.goto('/studio/~all/metadata/page');
41-
await page.goto(`/studio/~all/metadata/page/${name}`);
44+
await page.getByText(name, { exact: true }).first().click();
45+
await expect(page).toHaveURL(new RegExp(`/metadata/page/${name}`));
4246
await expect(page.getByTestId('metadata-edit-page')).toBeVisible();
4347

4448
await test.step('an edit stays on the page: no auto-save sends it', async () => {

0 commit comments

Comments
 (0)