diff --git a/tests/page-objects/wizard/WizardPage.ts b/tests/page-objects/wizard/WizardPage.ts index b5813c374a..3adef08d94 100644 --- a/tests/page-objects/wizard/WizardPage.ts +++ b/tests/page-objects/wizard/WizardPage.ts @@ -218,7 +218,7 @@ class WizardPage extends ChartPage { await expect( datasetFields.locator(slct(SectionDatasetQA.ItemTitle), { - hasText: fieldName, + hasText: new RegExp(`^${fieldName}$`, 'i'), }), ).toBeVisible(); }