mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
GH Auto: Upstream dependencies ADF:9.2.0-29815065241 JS-API:10.2.0-29815065241 using Tag:9.2.0-29815065241 (#5302)
* [ci:force][auto-commit] Update dependencies ADF:9.2.0-29815065241 JS:10.2.0-29815065241 * [ACS-11406] Align unit tests with refactored UnitTestingUtils (#5288) * [ACS-11406] Align unit tests with refactored UnitTestingUtils [ci:force] * [link-adf:dev-mmaliarchuk/ACS-11406-refactor-UnitTestingUtils][ci:force] * empty commit --------- Co-authored-by: alfresco-engineering-contributor[bot] <293808901+alfresco-engineering-contributor[bot]@users.noreply.github.com> Co-authored-by: Mykyta Maliarchuk <84377976+nikita-web-ua@users.noreply.github.com> Co-authored-by: Mykyta Maliarchuk <mykyta.maliarchuk@hyland.com>
This commit is contained in:
co-authored by
Mykyta Maliarchuk
Mykyta Maliarchuk
parent
f089e84da5
commit
dd2d1f8711
+2
-2
@@ -103,12 +103,12 @@ describe('RuleActionUiComponent', () => {
|
||||
|
||||
await changeMatSelectValue('Action 1 title');
|
||||
|
||||
await unitTestingUtils.fillMatInput('test');
|
||||
await unitTestingUtils.input.fill('test');
|
||||
await fixture.whenStable();
|
||||
|
||||
expect(component.parameters).toEqual({ 'mock-action-parameter-boolean': false, 'mock-action-parameter-text': 'test' });
|
||||
|
||||
await unitTestingUtils.fillMatInput('');
|
||||
await unitTestingUtils.input.fill('');
|
||||
await fixture.whenStable();
|
||||
|
||||
expect(component.parameters).toEqual({ 'mock-action-parameter-boolean': false });
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ describe('RuleTriggerUiComponent', () => {
|
||||
const getCheckboxOutbound = (): DebugElement => unitTestingUtils.getByDataAutomationId('rule-trigger-checkbox-outbound');
|
||||
|
||||
const toggleMatCheckbox = async (dataAutomationId: string) => {
|
||||
const checkbox = await unitTestingUtils.getMatCheckboxByDataAutomationId(dataAutomationId);
|
||||
const checkbox = await unitTestingUtils.checkbox.getByDataAutomationId(dataAutomationId);
|
||||
await checkbox.toggle();
|
||||
};
|
||||
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
|
||||
const getNameInput = (): HTMLInputElement => unitTestingUtils.getInputByDataAutomationId('app-library-metadata-form-name-input');
|
||||
|
||||
const clickEditButton = (): Promise<void> => unitTestingUtils.clickMatButtonByDataAutomationId('app-library-metadata-form-edit-button');
|
||||
const clickEditButton = (): Promise<void> => unitTestingUtils.button.clickByDataAutomationId('app-library-metadata-form-edit-button');
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
@@ -286,7 +286,7 @@ describe('LibraryMetadataFormComponent', () => {
|
||||
const nameInput = getNameInput();
|
||||
spyOn(nameInput, 'focus');
|
||||
|
||||
await unitTestingUtils.clickMatButtonByDataAutomationId('app-library-metadata-form-cancel-button');
|
||||
await unitTestingUtils.button.clickByDataAutomationId('app-library-metadata-form-cancel-button');
|
||||
expect(nameInput.focus).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ describe('ViewProfileComponent', () => {
|
||||
|
||||
it('should navigate to personal files when go to personal files button is clicked', async () => {
|
||||
spyOn(router, 'navigate');
|
||||
await unitTestingUtils.clickMatButtonByCSS('.app-profile-icon');
|
||||
await unitTestingUtils.button.clickByCSS('.app-profile-icon');
|
||||
|
||||
expect(router.navigate).toHaveBeenCalledWith(['/personal-files'], { replaceUrl: true });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user