mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix userinfo e2e (#5343)
This commit is contained in:
@@ -73,16 +73,9 @@ describe('User Info component', () => {
|
|||||||
await loginPage.loginToAllUsingUserModel(contentUserModel);
|
await loginPage.loginToAllUsingUserModel(contentUserModel);
|
||||||
|
|
||||||
await userInfoPage.clickUserProfile();
|
await userInfoPage.clickUserProfile();
|
||||||
|
await userInfoPage.dialogIsDisplayed();
|
||||||
await expect(await userInfoPage.getContentHeaderTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
|
||||||
await expect(await userInfoPage.getContentTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
|
||||||
await expect(await userInfoPage.getContentEmail()).toEqual(contentUserModel.email);
|
|
||||||
await expect(await userInfoPage.getContentJobTitle()).toEqual('N/A');
|
|
||||||
|
|
||||||
await userInfoPage.checkInitialImage();
|
|
||||||
await userInfoPage.APSProfileImageNotDisplayed();
|
|
||||||
await userInfoPage.ACSProfileImageNotDisplayed();
|
|
||||||
await userInfoPage.clickOnContentServicesTab();
|
await userInfoPage.clickOnContentServicesTab();
|
||||||
|
await userInfoPage.checkContentServicesTabIsSelected();
|
||||||
|
|
||||||
await expect(await userInfoPage.getContentHeaderTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
await expect(await userInfoPage.getContentHeaderTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
||||||
await expect(await userInfoPage.getContentTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
await expect(await userInfoPage.getContentTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
||||||
@@ -92,16 +85,16 @@ describe('User Info component', () => {
|
|||||||
await userInfoPage.checkInitialImage();
|
await userInfoPage.checkInitialImage();
|
||||||
await userInfoPage.APSProfileImageNotDisplayed();
|
await userInfoPage.APSProfileImageNotDisplayed();
|
||||||
await userInfoPage.ACSProfileImageNotDisplayed();
|
await userInfoPage.ACSProfileImageNotDisplayed();
|
||||||
|
|
||||||
await userInfoPage.clickOnProcessServicesTab();
|
await userInfoPage.clickOnProcessServicesTab();
|
||||||
await userInfoPage.checkProcessServicesTabIsSelected();
|
await userInfoPage.checkProcessServicesTabIsSelected();
|
||||||
|
|
||||||
await expect(await userInfoPage.getProcessHeaderTitle()).toEqual(contentUserModel.firstName + ' ' + contentUserModel.lastName);
|
await browser.sleep(1000);
|
||||||
await expect(await userInfoPage.getProcessTitle()).toEqual(contentUserModel.firstName + ' ' + processUserModel.lastName);
|
|
||||||
await expect(await userInfoPage.getProcessEmail()).toEqual(contentUserModel.email);
|
await expect(await userInfoPage.getProcessHeaderTitle()).toEqual(processUserModel.firstName + ' ' + processUserModel.lastName);
|
||||||
|
await expect(await userInfoPage.getProcessTitle()).toEqual(processUserModel.firstName + ' ' + processUserModel.lastName);
|
||||||
|
await expect(await userInfoPage.getProcessEmail()).toEqual(processUserModel.email);
|
||||||
|
|
||||||
await userInfoPage.checkInitialImage();
|
|
||||||
await userInfoPage.APSProfileImageNotDisplayed();
|
|
||||||
await userInfoPage.ACSProfileImageNotDisplayed();
|
|
||||||
await userInfoPage.closeUserProfile();
|
await userInfoPage.closeUserProfile();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -62,6 +62,11 @@ export class UserInfoPage {
|
|||||||
await tabsPage.checkTabIsSelectedByTitle('Process Services');
|
await tabsPage.checkTabIsSelectedByTitle('Process Services');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async checkContentServicesTabIsSelected(): Promise<void> {
|
||||||
|
const tabsPage = new TabsPage;
|
||||||
|
await tabsPage.checkTabIsSelectedByTitle('Content Services');
|
||||||
|
}
|
||||||
|
|
||||||
async clickOnProcessServicesTab(): Promise<void> {
|
async clickOnProcessServicesTab(): Promise<void> {
|
||||||
const tabsPage = new TabsPage;
|
const tabsPage = new TabsPage;
|
||||||
await tabsPage.clickTabByTitle('Process Services');
|
await tabsPage.clickTabByTitle('Process Services');
|
||||||
|
Reference in New Issue
Block a user