GH Auto: Upstream dependencies ADF:9.1.0-27608429044 JS-API:10.1.0-27608429044 using Tag:9.1.0-27608429044 (#5234)

* [ci:force][auto-commit] Update dependencies ADF:9.1.0-27608429044  JS:10.1.0-27608429044

* small search test updates for stability

---------

Co-authored-by: adamswiderskipw <105912315+adamswiderskipw@users.noreply.github.com>
Co-authored-by: Adam Świderski <adam.tomasz.swiderski@gmail.com>
This commit is contained in:
Alfresco Build
2026-06-16 13:24:40 +00:00
committed by GitHub
co-authored by adamswiderskipw Adam Świderski
parent 7667e55428
commit 0358edf99c
8 changed files with 60 additions and 47 deletions
@@ -138,7 +138,7 @@ export class ApiClientFactory {
try {
await this.alfrescoApi.login(user, userPassword);
} catch (error) {
logger.error(`[API Client Factory] Log in user ${user} failed ${error}`);
logger.error(`[API Client Factory] Log in user ${user} failed ${JSON.stringify(error)}`);
throw error;
}
}
@@ -166,7 +166,7 @@ export class ApiClientFactory {
logger.warn(`[API Client Factory] createUser: user "${user.username}" already exists, skipping creation`);
return null;
}
logger.error(`[API Client Factory] createUser failed: ${error}`);
logger.error(`[API Client Factory] createUser failed: ${JSON.stringify(error)}`);
throw error;
}
}
@@ -177,7 +177,7 @@ export class ApiClientFactory {
try {
return await peopleApi.updatePerson(username, { password: newPassword });
} catch (error) {
logger.error(`[API Client Factory] changePassword failed: ${error}`);
logger.error(`[API Client Factory] changePassword failed: ${JSON.stringify(error)}`);
return null;
}
}
@@ -37,7 +37,7 @@ async function toUploadFile(fileLocation: string): Promise<NodeFile> {
buffer = await fs.promises.readFile(fileLocation);
fileFixtureCache.set(fileLocation, buffer);
}
return new NodeFile([buffer], path.basename(fileLocation));
return new NodeFile([new Uint8Array(buffer)], path.basename(fileLocation));
}
export class FileActionsApi {
@@ -239,7 +239,7 @@ export class FileActionsApi {
try {
return (await this.queryNodesSearchHighlight(searchTerm)).list?.pagination?.totalItems || 0;
} catch (error) {
logger.warn(`queryNodesSearchHighlight failed for "${searchTerm}": ${error}`);
logger.warn(`queryNodesSearchHighlight failed for "${searchTerm}": ${JSON.stringify(error)}`);
return 0;
}
};
@@ -248,7 +248,7 @@ export class FileActionsApi {
await waitForApi(apiCall, predicate, 30, 2500);
logger.log(`waitForNodesSearchHighlight: Found ${data.expect} nodes with search term "${searchTerm}"`);
} catch (error) {
logger.error(`Error: ${error}`);
logger.error(`Error: ${JSON.stringify(error)}`);
}
}
@@ -263,7 +263,7 @@ export class FileActionsApi {
}
return await this.apiService.nodes.updateNodeContent(nodeId, content as unknown as string, opts); // NOSONAR
} catch (error) {
logger.error(`${this.constructor.name} ${this.updateNodeContent.name}: ${error}`);
logger.error(`${this.constructor.name} ${this.updateNodeContent.name}: ${JSON.stringify(error)}`);
return Promise.reject(error);
}
}
@@ -41,6 +41,8 @@ export class SearchFiltersDate extends BaseComponent {
public anytimeRadioButton = this.anytimeButton.locator(`input`);
public betweenButton = this.getChild(`[data-automation-id$='date-range-between']`);
public betweenRadioButton = this.betweenButton.locator(`input`);
public inTheLastRadioButton = this.getChild(`[data-automation-id="date-range-in-last"]`);
public quantityInput = this.getChild(`[data-automation-id="date-range-in-last-input"]`);
async openCreatedModifiedTab(page: SearchPage, tab: FilterTab): Promise<void> {
switch (tab) {
@@ -38,5 +38,11 @@ export abstract class PlaywrightBase {
const spinner = this.page.locator('[role="progressbar"]');
await spinner.waitFor({ state: 'attached', timeout: timeouts.medium }).catch(() => {});
await spinner.waitFor({ state: 'detached', timeout: timeouts.normal }).catch(() => {});
if (await spinner.first().isVisible()) {
await spinner
.first()
.waitFor({ state: 'detached', timeout: timeouts.normal })
.catch(() => {});
}
}
}