[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:
AleksanderSklorz
2025-07-01 08:01:36 +02:00
committed by GitHub
parent 4fec967ef3
commit 8e243db88d
10 changed files with 42 additions and 10 deletions

View File

@@ -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;
}

View File

@@ -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>

View File

@@ -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;
}
}
}

View File

@@ -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) ?? '',

View File

@@ -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);
}
}