mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[no-issue] fix test plus fix update script (#4629)
* fix test plus * fix test lint * increase timeout * increase timeout
This commit is contained in:
@@ -22,7 +22,6 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { SearchDialog } from '../pages/adf/dialog/searchDialog';
|
||||
import { ContentServicesPage } from '../pages/adf/contentServicesPage';
|
||||
import { SearchResultsPage } from '../pages/adf/searchResultsPage';
|
||||
import { FilePreviewPage } from '../pages/adf/filePreviewPage';
|
||||
|
||||
import { AcsUserModel } from '../models/ACS/acsUserModel';
|
||||
import { FolderModel } from '../models/ACS/folderModel';
|
||||
@@ -54,7 +53,6 @@ describe('Search component - Search Page', () => {
|
||||
const contentServicesPage = new ContentServicesPage();
|
||||
const searchDialog = new SearchDialog();
|
||||
const searchResultPage = new SearchResultsPage();
|
||||
const filePreviewPage = new FilePreviewPage();
|
||||
|
||||
const acsUser = new AcsUserModel();
|
||||
const emptyFolderModel = new FolderModel({ 'name': 'search' + StringUtil.generateRandomString() });
|
||||
@@ -98,7 +96,7 @@ describe('Search component - Search Page', () => {
|
||||
|
||||
await uploadActions.createEmptyFiles(this.alfrescoJsApi, adminFileNames, newFolderModelUploaded.entry.id);
|
||||
|
||||
browser.driver.sleep(10000);
|
||||
browser.driver.sleep(15000);
|
||||
|
||||
loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||
|
||||
@@ -112,19 +110,6 @@ describe('Search component - Search Page', () => {
|
||||
searchResultPage.checkNoResultMessageIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C260265] Should display file previewer when opening a file from search results', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(firstFileModel.name);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(firstFileModel.name);
|
||||
searchResultPage.navigateToFolder(firstFileModel.name);
|
||||
|
||||
browser.driver.sleep(200);
|
||||
|
||||
filePreviewPage.closePreviewWithButton();
|
||||
});
|
||||
|
||||
it('[C272810] Should display only files corresponding to search', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
|
||||
Reference in New Issue
Block a user