mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
ix build (#6347)
* create after e2e and before e2e script * permission test exclude * flaky exclude * fix * chmod permission * modify check cs * fix * execute * fix * fix
This commit is contained in:
@@ -83,7 +83,7 @@ describe('Enable infinite scrolling', () => {
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await contentServicesPage.contentList.dataTablePage().waitTillContentLoaded();
|
||||
});
|
||||
|
||||
|
@@ -160,7 +160,7 @@ describe('Login component', () => {
|
||||
await loginPage.loginWithProfile('admin');
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await loginPage.waitForElements();
|
||||
});
|
||||
|
||||
@@ -170,7 +170,7 @@ describe('Login component', () => {
|
||||
await loginPage.goToLoginPage();
|
||||
await expect(await loginPage.getSignInButtonIsEnabled()).toBe(false);
|
||||
await loginPage.loginWithProfile('admin');
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await contentServicesPage.checkAcsContainer();
|
||||
});
|
||||
|
||||
@@ -182,7 +182,7 @@ describe('Login component', () => {
|
||||
await loginPage.loginWithProfile('admin');
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await contentServicesPage.checkAcsContainer();
|
||||
await navigationBarPage.clickLoginButton();
|
||||
await loginPage.waitForElements();
|
||||
|
@@ -293,7 +293,7 @@ export class ContentServicesPage {
|
||||
|
||||
async goToDocumentList(): Promise<void> {
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await this.contentList.dataTablePage().waitTillContentLoaded();
|
||||
}
|
||||
|
||||
|
@@ -30,31 +30,32 @@ export class NavigationBarPage {
|
||||
processServicesCloudHomeButton = this.linkMenuChildrenContainer.element(by.css('.app-sidenav-link[data-automation-id="Home"]'));
|
||||
themeButton = element(by.css('button[data-automation-id="theme menu"]'));
|
||||
themeMenuContent = element(by.css('div[class*="mat-menu-panel"]'));
|
||||
languageMenuButton = element(by.css('button[data-automation-id="language-menu-button"]'));
|
||||
appTitle = element(by.css('.adf-app-title'));
|
||||
menuButton = element(by.css('button[data-automation-id="adf-menu-icon"]'));
|
||||
formButton = this.linkMenuChildrenContainer.element(by.css('.app-sidenav-link[data-automation-id="Form"]'));
|
||||
peopleGroupCloudButton = this.linkMenuChildrenContainer.element(by.css('.app-sidenav-link[data-automation-id="People/Group Cloud"]'));
|
||||
logoutSection: ElementFinder = element(by.css('div[data-automation-id="adf-logout-section"]'));
|
||||
personalFiles: ElementFinder = element(by.css('div [title="Personal Files"]'));
|
||||
|
||||
async clickNavigationBarItem(title: string): Promise<void> {
|
||||
async clickNavigationBarItem(title: string, untilElementIsVisible?: ElementFinder): Promise<void> {
|
||||
Logger.log(`clickNavigationBarItem ${title}`);
|
||||
|
||||
const menu = element(by.css(`.app-sidenav-link[data-automation-id="${title}"]`));
|
||||
await BrowserActions.closeMenuAndDialogs();
|
||||
await BrowserActions.click(menu);
|
||||
|
||||
if (untilElementIsVisible) {
|
||||
await BrowserActions.clickUntilIsNotVisible(menu, untilElementIsVisible);
|
||||
} else {
|
||||
await BrowserActions.click(menu);
|
||||
}
|
||||
}
|
||||
|
||||
async clickHomeButton(): Promise<void> {
|
||||
await this.clickNavigationBarItem('Home');
|
||||
}
|
||||
|
||||
async clickContentServicesButton(): Promise<void> {
|
||||
await this.clickNavigationBarItem('Content Services');
|
||||
}
|
||||
|
||||
async clickCardViewButton(): Promise<void> {
|
||||
await this.clickNavigationBarItem('CardView');
|
||||
async navigateToContentServices(): Promise<void> {
|
||||
await this.clickNavigationBarItem('Content Services', this.personalFiles);
|
||||
}
|
||||
|
||||
async clickHeaderDataButton(): Promise<void> {
|
||||
@@ -89,7 +90,7 @@ export class NavigationBarPage {
|
||||
await BrowserVisibility.waitUntilElementIsNotPresent(this.linkMenuChildrenContainer);
|
||||
}
|
||||
|
||||
async clickProcessServicesButton() {
|
||||
private async clickProcessServicesButton() {
|
||||
await BrowserActions.closeMenuAndDialogs();
|
||||
await BrowserActions.clickUntilIsNotVisible(this.getMenuItem('Process Services'), this.linkMenuChildrenContainer);
|
||||
}
|
||||
@@ -206,18 +207,6 @@ export class NavigationBarPage {
|
||||
await BrowserActions.getUrl(`${browser.baseUrl}/files/${folderId}`);
|
||||
}
|
||||
|
||||
async openLanguageMenu(): Promise<void> {
|
||||
await BrowserActions.closeMenuAndDialogs();
|
||||
await BrowserActions.click(this.languageMenuButton);
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.appTitle);
|
||||
}
|
||||
|
||||
async chooseLanguage(language): Promise<void> {
|
||||
const buttonLanguage = element(by.xpath(`//adf-language-menu//button[contains(text(), '${language}')]`));
|
||||
await BrowserActions.click(buttonLanguage);
|
||||
await BrowserVisibility.waitUntilElementIsNotPresent(this.linkMenuChildrenContainer);
|
||||
}
|
||||
|
||||
async checkMenuButtonIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.menuButton);
|
||||
}
|
||||
|
@@ -168,7 +168,7 @@ describe('Settings component', () => {
|
||||
await loginPage.enterUsername(browser.params.testConfig.users.admin.username);
|
||||
await loginPage.enterPassword(browser.params.testConfig.users.admin.password);
|
||||
await loginPage.clickSignInButton();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await contentServicesPage.checkAcsContainer();
|
||||
await navigationBarPage.clickSettingsButton();
|
||||
await expect(await settingsPage.getSelectedOptionText()).toBe('ECM');
|
||||
@@ -195,7 +195,7 @@ describe('Settings component', () => {
|
||||
await loginPage.enterUsername(browser.params.testConfig.users.admin.username);
|
||||
await loginPage.enterPassword(browser.params.testConfig.users.admin.password);
|
||||
await loginPage.clickSignInButton();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await contentServicesPage.checkAcsContainer();
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
|
@@ -106,7 +106,7 @@ describe('Viewer', () => {
|
||||
});
|
||||
|
||||
it('[C260106] Should be able to open a Word file shared via API', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await contentServicesPage.waitForTableBody();
|
||||
|
||||
await contentList.selectRow(wordFileInfo.name);
|
||||
|
Reference in New Issue
Block a user