mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Build(deps-dev): Bump @playwright/test from 1.37.1 to 1.42.1 (#3682)
* Build(deps-dev): Bump @playwright/test from 1.37.1 to 1.42.1 Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.37.1 to 1.42.1. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.37.1...v1.42.1) --- updated-dependencies: - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Playwright 1.42.1 upstream - fixed info-drawer tests * Playwright 1.42.1 upstream - fixed copy-move-actions tests * @datguychen Playwright 1.42.1 upstream - fixed library-actions tests * Playwright 1.42.1 upstream - SonarCloud fix 1 * Playwright 1.42.1 upstream - review fix 1 * Playwright 1.42.1 upstream - review fix 2 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: datguychen <adam.swiderski@hyland.com>
This commit is contained in:
@@ -160,7 +160,9 @@ export class FileActionsApi {
|
||||
|
||||
try {
|
||||
await waitForApi(apiCall, predicate, 30, 2500);
|
||||
} catch {}
|
||||
} catch (error) {
|
||||
console.error(`Error: ${error}`);
|
||||
}
|
||||
}
|
||||
|
||||
async updateNodeContent(nodeId: string, content: string, majorVersion: boolean = true, comment?: string, newName?: string): Promise<NodeEntry> {
|
||||
|
@@ -241,7 +241,7 @@ export class DataTableComponent extends BaseComponent {
|
||||
const isSelected = await this.hasCheckMarkIcon(name);
|
||||
if (!isSelected) {
|
||||
let row = this.getRowByName(name);
|
||||
await row.locator('[title="Size"]').click();
|
||||
await row.locator('[title="Size"]').click({ modifiers: ['Meta'] });
|
||||
await row.locator('.adf-datatable-selected').waitFor({ state: 'attached' });
|
||||
}
|
||||
}
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
const crypto = require('crypto');
|
||||
import * as path from 'path';
|
||||
import { LoginPage, PersonalFilesPage } from '../';
|
||||
import { LoginPage, MyLibrariesPage, PersonalFilesPage, FavoritesLibrariesPage, SearchPage } from '../';
|
||||
import { NodesApi, TrashcanApi, SitesApi } from '@alfresco/playwright-shared';
|
||||
|
||||
export class Utils {
|
||||
@@ -98,4 +98,18 @@ export class Utils {
|
||||
const fileInput = await personalFilesPage.page.$('#app-upload-file-version');
|
||||
await fileInput.setInputFiles(path.join(__dirname, `../resources/test-files/${fileFromOS}.docx`));
|
||||
}
|
||||
|
||||
static async reloadPageIfRowNotVisible(
|
||||
pageContext: PersonalFilesPage | MyLibrariesPage | FavoritesLibrariesPage | SearchPage,
|
||||
nodeName: string,
|
||||
errorMessage = 'Error '
|
||||
): Promise<void> {
|
||||
try {
|
||||
if (!await pageContext.dataTable.getRowByName(nodeName).isVisible()) {
|
||||
await pageContext.page.reload({ waitUntil: 'load' });
|
||||
};
|
||||
} catch (error) {
|
||||
console.error(`${errorMessage}: ${error}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user