mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-21392 Improve test
This commit is contained in:
+2
-1
@@ -192,8 +192,9 @@ describe('DropdownCloudWidgetComponent', () => {
|
||||
widget.ngOnInit();
|
||||
const dropdown = await loader.getHarness(MatSelectHarness.with({ selector: '.adf-select' }));
|
||||
await dropdown.open();
|
||||
const options = await dropdown.getOptions();
|
||||
|
||||
expect(await (await dropdown.getOptions())[0].getText()).toEqual('default1_value');
|
||||
expect(await options[0].getText()).toEqual('default1_value');
|
||||
expect(widget.field.form.values['dropdown-id']).toEqual({ id: 'opt1', name: 'default1_value' });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user