mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[MNT-25175] Display script name for folder rule (#4637)
* [MNT-25175] Display script name for folder rule * [MNT-25175] Fixed e2e * [MNT-25175] Exclude e2e tests * [MNT-25175] Exclude e2e tests
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
.aca-rule-action-list {
|
||||
min-width: 0;
|
||||
|
||||
.aca-rule-action-list__item .aca-rule-action .mat-mdc-form-field-flex .mat-mdc-form-field-infix {
|
||||
padding-top: 24px;
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<form class="aca-rule-action__form" [formGroup]="form">
|
||||
|
||||
<mat-form-field class="aca-rule-action-full-width" appearance="fill" subscriptSizing="dynamic">
|
||||
<mat-form-field class="aca-rule-action-full-width aca-rule-action-form-field" appearance="fill" subscriptSizing="dynamic">
|
||||
<mat-select
|
||||
formControlName="actionDefinitionId"
|
||||
data-automation-id="rule-action-select"
|
||||
@@ -17,7 +17,7 @@
|
||||
*ngIf="cardViewItems?.length > 0"
|
||||
data-automation-id="rule-action-card-view"
|
||||
[properties]="cardViewItems"
|
||||
class="aca-rule-action-full-width"
|
||||
class="aca-rule-action-full-width aca-rule-action-card-view"
|
||||
[editable]="!readOnly" />
|
||||
|
||||
</form>
|
||||
|
@@ -1,4 +1,6 @@
|
||||
.aca-rule-action {
|
||||
max-width: 100%;
|
||||
|
||||
&__form {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -27,5 +29,14 @@
|
||||
&-full-width {
|
||||
height: fit-content;
|
||||
flex: 1;
|
||||
|
||||
&.aca-rule-action-form-field {
|
||||
min-width: unset;
|
||||
}
|
||||
|
||||
&.aca-rule-action-card-view {
|
||||
overflow: hidden;
|
||||
margin-top: 11px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -255,7 +255,7 @@ export class RuleActionUiComponent implements ControlValueAccessor, OnInit, OnCh
|
||||
}
|
||||
// falls through
|
||||
default:
|
||||
if (constraintsForDropdownBox && !this.readOnly) {
|
||||
if (constraintsForDropdownBox) {
|
||||
return new CardViewSelectItemModel({
|
||||
...cardViewPropertiesModel,
|
||||
value: (this.parameters[paramDef.name] as string) ?? '',
|
||||
|
@@ -35,7 +35,7 @@ export class ManageRules extends BaseComponent {
|
||||
public ruleDetailsDeleteButton = this.getChild('#delete-rule-btn');
|
||||
public ruleDetailsEditButton = this.getChild('#edit-rule-btn');
|
||||
public ruleDetailsWhenText = this.getChild('[data-automation-id="rule-details-triggers-component"]');
|
||||
public ruleDetailsPerformActionsDiv = this.getChild('adf-card-view-textitem mat-form-field input');
|
||||
public ruleDetailsPerformActionsDiv = this.getChild('adf-card-view-selectitem .adf-property-read-only');
|
||||
public rulesEmptyListTitle = this.getChild('.adf-empty-content__title');
|
||||
public ruleActions = this.getChild('aca-rule-action');
|
||||
public ruleConditionsInGroup = this.getChild('aca-rule-composite-condition aca-rule-simple-condition');
|
||||
@@ -47,7 +47,7 @@ export class ManageRules extends BaseComponent {
|
||||
|
||||
async checkAspects(aspects: string[]): Promise<void> {
|
||||
for (let i = 0; i < aspects.length; i++) {
|
||||
const aspectsActions = await this.ruleDetailsPerformActionsDiv.nth(i).inputValue();
|
||||
const aspectsActions = await this.ruleDetailsPerformActionsDiv.nth(i).innerText();
|
||||
expect(aspects).toContain(aspectsActions);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user