mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-6510] playwright List View e2e test (#3566)
* [ACS-6435] playwright e2e for list views personal files * e2e test for trash page * e2e test for trash page * e2e test for file-libraries page * e2e test for file-libraries page fix * e2e test for file-libraries page fix * e2e test shared recent page * e2e test shared recent page fix * e2e test review comment fix * e2e test review fix flaky test fix * e2e test fail test fix * e2e test fail fix * test code fix * protractor list-view test enable * [ACS-6510] listview playwright e2e test * code fix * code fix * code fix * code fix * code fix * code fix * code fix for review * code fix for review
This commit is contained in:
@@ -37,13 +37,6 @@ describe('Empty list views', () => {
|
||||
await loginPage.loginWith(username);
|
||||
});
|
||||
|
||||
it('[C217099] empty My Libraries', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain(`You aren't a member of any File Libraries yet`);
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Join libraries to upload, view, and share files.');
|
||||
});
|
||||
|
||||
it('[C289911] empty Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
@@ -65,14 +58,6 @@ describe('Empty list views', () => {
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Favorite items that you want to easily find later.');
|
||||
});
|
||||
|
||||
it('[C280134] empty Trash', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain('Trash is empty');
|
||||
expect(await dataTable.getEmptyListText()).toContain('Items you delete are moved to the Trash.');
|
||||
expect(await dataTable.getEmptyListText()).toContain('Empty Trash to permanently delete items.');
|
||||
});
|
||||
|
||||
it('[C280111] Favorites - pagination controls not displayed', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
@@ -133,21 +118,6 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('[C290123] Search results - pagination controls not displayed', async () => {
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
await dataTable.waitForBody();
|
||||
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
expect(await pagination.isCurrentPagePresent()).toBe(false, 'Current page is present');
|
||||
expect(await pagination.isTotalPagesPresent()).toBe(false, 'Total pages is present');
|
||||
expect(await pagination.isPreviousButtonPresent()).toBe(false, 'Previous button is present');
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('[C290020] Empty Search results - Libraries', async () => {
|
||||
await page.goToMyLibraries();
|
||||
await toolbar.clickSearchIconButton();
|
||||
@@ -160,17 +130,4 @@ describe('Empty list views', () => {
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.emptySearchText.getText()).toContain('Your search returned 0 results');
|
||||
});
|
||||
|
||||
it('[C290031] Empty Search results - Files / Folders', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
await toolbar.clickSearchIconButton();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
await dataTable.waitForBody();
|
||||
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.emptySearchText.getText()).toContain('Your search returned 0 results');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user