mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-13069]- Input fields label improvements (#8387)
* AAE-13069: Removing extra div inside mat label * AAE-13069: Removing font size css rule and applying right class to the mat label * AAE-13069: Refactoring text item component based on Angular Material * AAE-13069: Updated unit test * AAE-13069: Fixed lint issues * AAE-13069: Fixed styles * AAE-13069: Updated e2e tests * AAE-13069: Updated e2e tests
This commit is contained in:
@@ -24,13 +24,13 @@ export class CardTextItemPage {
|
||||
saveButton = 'button[data-automation-id*="card-textitem-update"]';
|
||||
clearButton = 'button[data-automation-id*="card-textitem-reset"]';
|
||||
field = '[data-automation-id*="card-textitem-value"]';
|
||||
labelLocator = 'div[data-automation-id*="card-textitem-label"]';
|
||||
labelLocator = '[data-automation-id*="card-textitem-label"]';
|
||||
errorMessage = '.adf-textitem-editable-error';
|
||||
clickableElement = '.adf-textitem-clickable';
|
||||
readOnlyField = '.adf-property-read-only';
|
||||
|
||||
constructor(label: string = 'assignee') {
|
||||
this.rootElement = element(by.xpath(`//div[contains(@data-automation-id, "card-textitem-label-${label}")]//ancestor::adf-card-view-textitem`));
|
||||
this.rootElement = element(by.xpath(`//mat-label[contains(@data-automation-id, "card-textitem-label-${label}")]//ancestor::adf-card-view-textitem`));
|
||||
}
|
||||
|
||||
async getFieldValue(): Promise<string> {
|
||||
|
Reference in New Issue
Block a user