mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ADF-3638]Fixing Header tests (#3846)
* Fixing Header tests * Fix task filters tests
This commit is contained in:
parent
6a546289b7
commit
2e124fdc20
@ -53,10 +53,6 @@ describe('Header Component', () => {
|
|||||||
hostBpm: TestConfig.adf.url
|
hostBpm: TestConfig.adf.url
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(async(done) => {
|
|
||||||
let users = new UsersActions();
|
let users = new UsersActions();
|
||||||
|
|
||||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||||
@ -67,14 +63,19 @@ describe('Header Component', () => {
|
|||||||
|
|
||||||
await this.alfrescoJsApi.login(user.email, user.password);
|
await this.alfrescoJsApi.login(user.email, user.password);
|
||||||
|
|
||||||
await loginPage.loginToProcessServicesUsingUserModel(user);
|
done();
|
||||||
|
});
|
||||||
|
|
||||||
await navigationBarPage.clickHeaderDataButton();
|
beforeEach(async(done) => {
|
||||||
|
|
||||||
|
loginPage.loginToProcessServicesUsingUserModel(user);
|
||||||
|
|
||||||
|
navigationBarPage.clickHeaderDataButton();
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async(done) => {
|
afterAll(async(done) => {
|
||||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||||
|
|
||||||
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
|
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
|
||||||
|
@ -103,6 +103,7 @@ export class HeaderPage {
|
|||||||
|
|
||||||
addLogoHyperlink(hyperlink) {
|
addLogoHyperlink(hyperlink) {
|
||||||
Util.waitUntilElementIsVisible(this.logoHyperlinkInput);
|
Util.waitUntilElementIsVisible(this.logoHyperlinkInput);
|
||||||
|
Util.waitUntilElementIsClickable(this.logoHyperlinkInput);
|
||||||
return this.logoHyperlinkInput.click().sendKeys(hyperlink).sendKeys(protractor.Key.ENTER);
|
return this.logoHyperlinkInput.click().sendKeys(hyperlink).sendKeys(protractor.Key.ENTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,6 +134,7 @@ var NavigationBarPage = function () {
|
|||||||
|
|
||||||
this.clickHeaderDataButton = function () {
|
this.clickHeaderDataButton = function () {
|
||||||
Util.waitUntilElementIsVisible(headerDataButton);
|
Util.waitUntilElementIsVisible(headerDataButton);
|
||||||
|
Util.waitUntilElementIsClickable(headerDataButton);
|
||||||
return headerDataButton.click();
|
return headerDataButton.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ describe('Task', () => {
|
|||||||
|
|
||||||
appId = appModel.id;
|
appId = appModel.id;
|
||||||
|
|
||||||
await loginPage.loginToProcessServicesUsingUserModel(user);
|
loginPage.loginToProcessServicesUsingUserModel(user);
|
||||||
|
|
||||||
navigationBarPage.clickProcessServicesButton();
|
navigationBarPage.clickProcessServicesButton();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user