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.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:
co-authored by
adamswiderskipw
Adam Świderski
parent
7667e55428
commit
0358edf99c
@@ -57,7 +57,7 @@ test.describe('Search Highlighting', () => {
|
||||
|
||||
await fileActionsApi.waitForNodesSearchHighlight(fileContentHighlight, { expect: 1 });
|
||||
} catch (error) {
|
||||
console.error(`beforeAll failed: ${error}`);
|
||||
console.error(`beforeAll failed: ${JSON.stringify(error)}`);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -78,7 +78,12 @@ test.describe('Search Highlighting', () => {
|
||||
|
||||
test('[XAT-17121] Matching phrases should be highlighted in the file content for search results', async ({ searchPage, personalFiles }) => {
|
||||
await personalFiles.navigate();
|
||||
await searchPage.searchWithin(fileContent, 'files');
|
||||
await searchPage.searchWithin(`${fileContent}`, 'files');
|
||||
await searchPage.searchFilters.dateFilter.click();
|
||||
await searchPage.searchFiltersDate.inTheLastRadioButton.click();
|
||||
await searchPage.searchFiltersDate.quantityInput.fill('1');
|
||||
await searchPage.searchMenuCard.menuCardApply.click();
|
||||
await searchPage.spinnerWaitForReload();
|
||||
expect(await searchPage.dataTable.hasHighlightedText('content')).toBe(true);
|
||||
expect(await searchPage.dataTable.hasHighlightedText('name')).toBe(false);
|
||||
});
|
||||
|
||||
@@ -192,8 +192,6 @@ test.describe('Search Results - General', () => {
|
||||
});
|
||||
|
||||
test('[XAT-5600] User role is correctly displayed', async ({ searchPage }) => {
|
||||
await searchPage.searchWithin(`admin-${random}-site`, 'libraries');
|
||||
|
||||
const expectedSitesRoles = {
|
||||
[adminSite1]: SITE_ROLES.SITE_CONSUMER.LABEL,
|
||||
[adminSite2]: SITE_ROLES.SITE_CONTRIBUTOR.LABEL,
|
||||
@@ -201,6 +199,8 @@ test.describe('Search Results - General', () => {
|
||||
[adminSite4]: SITE_ROLES.SITE_MANAGER.LABEL
|
||||
};
|
||||
|
||||
await searchPage.searchWithin(`admin-${random}-site`, 'libraries');
|
||||
|
||||
const actualSitesRole = await searchPage.dataTable.getSitesNameAndRole();
|
||||
|
||||
expect(expectedSitesRoles).toEqual(actualSitesRole);
|
||||
|
||||
Reference in New Issue
Block a user