mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-4894] [E2E] Added new e2e for update folder rules (#3929)
* [ACS-4892] [E2E] Created new tests for adding folder rules * [ACS-4892] deleted the unused if enum * [ACS-4894] Added update folder rules tests * [ACS-4894] sonar fix 1 * [ACS-4894] sonar fix 2 * [ACS-4894] sonar fix 3 * [ACS-4894] review fixes 1 * [ACS-4894] review fixes 2 * [ACS-4894] review fixes 3 * [ACS-4894] comments deleted * [ACS-4894] eslint fix
This commit is contained in:
@@ -85,7 +85,7 @@ test.describe('Search - Filters - General', () => {
|
||||
});
|
||||
|
||||
test('[C704283] Facets filters can be cleared', async ({ searchPage }) => {
|
||||
const filterTextBefore = searchPage.searchFilters.propertiesFilter;
|
||||
const filterTextBefore = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||
await searchPage.searchFilters.propertiesFilter.click();
|
||||
await searchPage.searchFiltersProperties.fileSizeInput.fill('1000');
|
||||
await searchPage.searchFilters.menuCardApply.click();
|
||||
@@ -97,12 +97,12 @@ test.describe('Search - Filters - General', () => {
|
||||
await searchPage.searchFiltersProperties.fileSizeInput.waitFor({ state: 'hidden' });
|
||||
const filterTextCleared = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||
|
||||
await expect(filterTextBefore).toHaveText(filterTextCleared);
|
||||
expect(filterTextBefore).toEqual(filterTextCleared);
|
||||
expect(filterTextAfter).not.toEqual(filterTextCleared);
|
||||
});
|
||||
|
||||
test('[C699499] All filters can be reset with reset button', async ({ searchPage }) => {
|
||||
const propertiesFilterTextBefore = searchPage.searchFilters.propertiesFilter;
|
||||
const propertiesFilterTextBefore = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||
await searchPage.searchFilters.propertiesFilter.click();
|
||||
await searchPage.searchFiltersProperties.fileSizeInput.fill('1000');
|
||||
await searchPage.searchFilters.menuCardApply.click();
|
||||
@@ -120,9 +120,9 @@ test.describe('Search - Filters - General', () => {
|
||||
const propertiesFilterTextCleared = await searchPage.searchFilters.propertiesFilter.textContent();
|
||||
const logicFilterTextCleared = await searchPage.searchFilters.logicFilter.textContent();
|
||||
|
||||
await expect(propertiesFilterTextBefore).toHaveText(propertiesFilterTextCleared);
|
||||
expect(logicFilterTextBefore).toEqual(logicFilterTextCleared);
|
||||
expect(propertiesFilterTextCleared).not.toEqual(propertiesFilterTextAfter);
|
||||
expect(logicFilterTextCleared).not.toEqual(logicFilterTextAfter);
|
||||
await expect(propertiesFilterTextBefore).toEqual(propertiesFilterTextCleared);
|
||||
await expect(logicFilterTextBefore).toEqual(logicFilterTextCleared);
|
||||
await expect(propertiesFilterTextCleared).not.toEqual(propertiesFilterTextAfter);
|
||||
await expect(logicFilterTextCleared).not.toEqual(logicFilterTextAfter);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user