Skip to content

Commit

Permalink
AAE-21392 Fix dropdown form widget style (#9605)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoABastos authored and VitoAlbano committed Jun 20, 2024
1 parent 5050232 commit 7d97505
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { TaskVariableCloud } from '../../../models/task-variable-cloud.model';
import { HarnessLoader } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { MatSelectHarness } from '@angular/material/select/testing';
import { MatFormFieldHarness } from '@angular/material/form-field/testing';
import { MatTooltipHarness } from '@angular/material/tooltip/testing';

describe('DropdownCloudWidgetComponent', () => {
Expand Down Expand Up @@ -239,12 +238,8 @@ describe('DropdownCloudWidgetComponent', () => {
await dropdown.open();
await dropdown.clickOptions({ selector: '[id="empty"]' });

const formField = await loader.getHarness(MatFormFieldHarness);
const dropdownLabel = await formField.getLabel();

expect(dropdownLabel).toEqual('This is a mock none option');
expect(await dropdown.getValueText()).toEqual('This is a mock none option');
expect(widget.fieldValue).toEqual(undefined);
expect(await dropdown.getValueText()).toEqual('');
});
});

Expand Down

0 comments on commit 7d97505

Please sign in to comment.