V12: Remove test.only for acceptance tests (#14232)

* Remove test.only

* Try quick fix for test

* Fixed failing test so it now locates the correct class. Updated the locators aswell

---------

Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
This commit is contained in:
Andreas Zerbst
2023-05-11 15:02:52 +02:00
committed by GitHub
parent 06bd728c18
commit 36fe2f7e49

View File

@@ -46,12 +46,15 @@ test.describe('Tabs', () => {
await openDocTypeFolder(umbracoUi, page);
}
test.only('Click dashboard tabs', async ({umbracoUi, page}) => {
await umbracoUi.goToSection('content');
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 ng-scope umb-tab--active');
test('Click dashboard tabs', async ({umbracoUi, page}) => {
await umbracoUi.goToSection(ConstantHelper.sections.content);
await umbracoUi.clickDataElementByElementName('tab-contentRedirectManager');
await expect(page.locator('[data-element="tab-content-contentRedirectManager"]')).toBeVisible();
await umbracoUi.clickDataElementByElementName('tab-contentIntro');
// Assert
await expect(page.locator('[data-element="tab-contentIntro"]')).toHaveClass(/umb-tab--active/);
await expect(page.locator('[data-element="tab-content-contentIntro"]')).toBeVisible();
});
test('Create tab', async ({umbracoUi, umbracoApi, page}) => {