Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ const unsavedPopover = (page: Page) =>
*/
const openDirtyNavigationEditor = async (page: Page, personaName: string) => {
await openPersonaSettings(page, personaName, '/customize/navigation');
const exploreToggle = page.getByTestId('navigation-switch-/explore');
const exploreToggle = page.getByTestId('ai-sidebar-switch-explore');

await expect(exploreToggle.getByRole('switch')).toBeChecked();

Expand All @@ -1058,7 +1058,7 @@ const openDirtyNavigationEditor = async (page: Page, personaName: string) => {
const expectEditorKeepsEdits = async (page: Page) => {
await expect(page.getByTestId('persona-customize-view')).toBeVisible();
await expect(
page.getByTestId('navigation-switch-/explore').getByRole('switch')
page.getByTestId('ai-sidebar-switch-explore').getByRole('switch')
).not.toBeChecked();
await expect(page.getByTestId('customize-save')).toBeEnabled();
await expect(unsavedPopover(page)).not.toBeVisible();
Expand Down Expand Up @@ -1186,14 +1186,14 @@ test.describe(
await page.getByTestId('unsaved-changes-popover-confirm').click();
const response = await saveResponse;

expect(response.request().postData() ?? '').toContain('/explore');
expect(response.request().postData() ?? '').toContain('explore');
await expect(page.getByTestId('persona-detail-container')).toBeVisible();
await expect(unsavedPopover(page)).not.toBeVisible();

await page.getByTestId('customize-card-navigation').click();

await expect(
page.getByTestId('navigation-switch-/explore').getByRole('switch')
page.getByTestId('ai-sidebar-switch-explore').getByRole('switch')
).not.toBeChecked();
await expect(page.getByTestId('customize-save')).toBeDisabled();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,11 @@ export const deleteCreatedProperty = async (
const dialog = page.getByRole('dialog', { name: 'Delete Property' });

await waitForOverlayToOpen(dialog);
await expect(dialog.getByTestId('body-text')).toContainText(propertyName);
// The dialog names the property by its display name, which
// editCreatedProperty sets to the upper-cased name.
await expect(dialog.getByTestId('body-text')).toContainText(propertyName, {
ignoreCase: true,
});

const saves = recordCustomPropertySaves(page);

Expand Down
Loading