use stable object

This commit is contained in:
John Hill 2023-12-27 21:53:07 -08:00
parent 5c8355c7f8
commit 827ec5690f

View File

@ -40,8 +40,8 @@ test.describe("Visual - Check Notification Info Banner of 'Save successful' @a11
}) => {
// Create a clock domain object
await createDomainObjectWithDefaults(page, {
type: 'Folder',
name: 'Default Folder'
type: 'Condition Widget',
name: 'Visual Condition Widget'
});
// Click on the div with role="alert" that has "Save successful" text
await page.locator('div[role="alert"]:has-text("Save successful")').click();