mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[affected:*][ci:force] [AAE-21070] Fix e2e Content: Components - C587084 - fix class selectors
This commit is contained in:
committed by
Vito Albano
parent
9c8718551b
commit
4ae824fd68
@@ -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'
|
||||||
},
|
},
|
||||||
|
@@ -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)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user