Use regex for class

This commit is contained in:
Nikolaj
2023-05-03 13:15:17 +02:00
parent f7f361239c
commit 21c6828b59

View File

@@ -51,7 +51,7 @@ test.describe('Tabs', () => {
await page.locator('[data-element="tab-contentRedirectManager"] > button').click();
expect(page.locator('.redirecturlsearch')).not.toBeNull();
await page.locator('[data-element="tab-contentIntro"] > button').click();
await expect(page.locator('[data-element="tab-contentIntro"]')).toHaveClass('umb-tab umb-tab--active');
await expect(page.locator('[data-element="tab-contentIntro"]')).toHaveClass(/umb\-tab\-\-active/);
});
test('Create tab', async ({umbracoUi, umbracoApi, page}) => {