From 67c2f35172653b5125f3db594b099938d98ff423 Mon Sep 17 00:00:00 2001 From: Jannis Leifeld Date: Wed, 4 Dec 2024 14:00:30 +0100 Subject: [PATCH] fix!: NEXT-39858 - make settings menu more accesible --- src/page-objects/administration/LandingPageCreate.ts | 2 +- src/page-objects/administration/LandingPageDetail.ts | 2 +- src/page-objects/administration/ProductDetail.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/page-objects/administration/LandingPageCreate.ts b/src/page-objects/administration/LandingPageCreate.ts index 5e02f65..0797228 100644 --- a/src/page-objects/administration/LandingPageCreate.ts +++ b/src/page-objects/administration/LandingPageCreate.ts @@ -39,7 +39,7 @@ export class LandingPageCreate implements PageObject { this.filtersResultPopoverItemList = page.locator('.sw-select-result-list__content').getByRole('listitem'); this.seoUrlInput = page.getByLabel('SEO URL'); //Layout - this.layoutTab = page.getByRole('link', { name: 'Layout' }); + this.layoutTab = page.getByRole('tab', { name: 'Layout' }); const layoutCardPreview = page.locator('.sw-category-layout-card__preview'); this.layoutEmptyState = layoutCardPreview.locator('.is--empty'); this.assignLayoutButton = page.getByRole('button', { name: 'Assign layout' }); diff --git a/src/page-objects/administration/LandingPageDetail.ts b/src/page-objects/administration/LandingPageDetail.ts index 6c89c1f..a079495 100644 --- a/src/page-objects/administration/LandingPageDetail.ts +++ b/src/page-objects/administration/LandingPageDetail.ts @@ -39,7 +39,7 @@ export class LandingPageDetail implements PageObject { this.filtersResultPopoverItemList = page.locator('.sw-select-result-list__content').getByRole('listitem'); this.seoUrlInput = page.getByLabel('SEO URL'); //Layout - this.layoutTab = page.getByRole('link', {name: 'Layout'}); + this.layoutTab = page.getByRole('tab', {name: 'Layout'}); this.changeLayoutButton = page.getByRole('button', {name: 'Change layout'}); this.editInDesignerButton = page.getByRole('button', {name: 'Edit in designer'}); const layoutAssignmentCard = page.locator('.sw-category-layout-card'); diff --git a/src/page-objects/administration/ProductDetail.ts b/src/page-objects/administration/ProductDetail.ts index 19fc3d3..676b376 100644 --- a/src/page-objects/administration/ProductDetail.ts +++ b/src/page-objects/administration/ProductDetail.ts @@ -61,7 +61,7 @@ export class ProductDetail implements PageObject { this.coverImage = page.locator('.sw-product-media-form__cover-image'); this.productImage = page.locator('.sw-media-preview-v2__item'); - this.variantsTabLink = page.getByRole('link', { name: 'Variants' }); + this.variantsTabLink = page.getByRole('tab', { name: 'Variants' }); this.generateVariantsButton = page.getByRole('button', { name: 'Generate variants' }); this.variantsModal = page.getByRole('dialog', { name: 'Generate variants' }); @@ -80,7 +80,7 @@ export class ProductDetail implements PageObject { this.propertyOptionSizeMedium = this.propertyOptionGrid.getByLabel('Medium'); this.propertyOptionSizeLarge = this.propertyOptionGrid.getByLabel('Large'); - this.specificationsTabLink = page.getByRole('link', { name: 'Specifications' }); + this.specificationsTabLink = page.getByRole('tab', { name: 'Specifications' }); this.customFieldCard = page.locator('.sw-card').getByText('Custom fields'); }