Skip to content

Commit

Permalink
fix!: NEXT-39858 - make settings menu more accesible
Browse files Browse the repository at this point in the history
  • Loading branch information
jleifeld committed Dec 4, 2024
1 parent 99b74a9 commit 67c2f35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/page-objects/administration/LandingPageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down
2 changes: 1 addition & 1 deletion src/page-objects/administration/LandingPageDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions src/page-objects/administration/ProductDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand All @@ -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');
}

Expand Down

0 comments on commit 67c2f35

Please sign in to comment.