Fixing e2e wiki tests

stable
Alejandro Alonso 2015-10-30 11:33:32 +01:00
parent bff325398e
commit cb0b7b394c
2 changed files with 6 additions and 3 deletions

View File

@ -30,8 +30,11 @@ describe('wiki', function() {
it('follow last link', async function() {
// the click event is not on the <a> :(
let lastLink = wikiHelper.links().get().last().$('.link-title');
utils.common.link(lastLink);
browser
.actions()
.mouseMove(lastLink)
.click()
.perform();
await utils.common.waitLoader();
await utils.common.takeScreenshot("wiki", "new-link-created-with-empty-wiki-page");

View File

@ -294,7 +294,7 @@ helper.attachment = function() {
await el.$$('div[tg-attachment] .attachment-settings .icon-edit').last().click();
await el.$$('div[tg-attachment] .editable-attachment-comment input').last().sendKeys(name);
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
await browser.waitForAngular();
return browser.waitForAngular();
},
getFirstAttachmentName: async function () {