[affected:*][ci:force] [AAE-21070] Fix e2e Content: Components - C587084 - fix class selectors

This commit is contained in:
Amedeo Lepore
2024-03-11 18:50:27 +01:00
committed by Vito Albano
parent 9c8718551b
commit 4ae824fd68
2 changed files with 7 additions and 4 deletions

View File

@@ -385,10 +385,10 @@ export const materialLocators = {
content: '.mat-mdc-tab-body-content' content: '.mat-mdc-tab-body-content'
}, },
label: { label: {
class: '.mat-mdc-tab-label', class: '.mdc-tab',
root: 'mat-tab-label', root: 'mat-tab-label',
active: { active: {
class: '.mat-mdc-tab-label-active', class: '.mdc-tab--active',
root: 'mat-tab-label-active' root: 'mat-tab-label-active'
}, },
content: { content: {
@@ -397,7 +397,10 @@ export const materialLocators = {
} }
}, },
labels: { labels: {
class: '.mdc-tab__text-label' class: '.mdc-tab__text-label',
container: {
class: '.mat-mdc-tab-labels'
}
}, },
list: '.mat-mdc-tab-list' list: '.mat-mdc-tab-list'
}, },

View File

@@ -253,7 +253,7 @@ export class ViewerPage {
} }
async checkTabIsActive(tabName: string): Promise<void> { async checkTabIsActive(tabName: string): Promise<void> {
const materialLocatorPart = `div${materialLocators.Tab.labels.class} div${materialLocators.Tab.label.active.class} ${materialLocators.Tab.label.content.class}`; const materialLocatorPart = `div${materialLocators.Tab.labels.container.class} div${materialLocators.Tab.label.active.class} ${materialLocators.Tab.label.content.class}`;
const tab = element( const tab = element(
by.cssContainingText(`.adf-info-drawer-layout-content ${materialLocatorPart}`, tabName) by.cssContainingText(`.adf-info-drawer-layout-content ${materialLocatorPart}`, tabName)
); );