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:
@@ -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}) => {
|
||||
|
||||
Reference in New Issue
Block a user