Fixing e2e wiki tests
parent
bff325398e
commit
cb0b7b394c
|
@ -30,8 +30,11 @@ describe('wiki', function() {
|
||||||
it('follow last link', async function() {
|
it('follow last link', async function() {
|
||||||
// the click event is not on the <a> :(
|
// the click event is not on the <a> :(
|
||||||
let lastLink = wikiHelper.links().get().last().$('.link-title');
|
let lastLink = wikiHelper.links().get().last().$('.link-title');
|
||||||
|
browser
|
||||||
utils.common.link(lastLink);
|
.actions()
|
||||||
|
.mouseMove(lastLink)
|
||||||
|
.click()
|
||||||
|
.perform();
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
await utils.common.takeScreenshot("wiki", "new-link-created-with-empty-wiki-page");
|
await utils.common.takeScreenshot("wiki", "new-link-created-with-empty-wiki-page");
|
||||||
|
|
|
@ -294,7 +294,7 @@ helper.attachment = function() {
|
||||||
await el.$$('div[tg-attachment] .attachment-settings .icon-edit').last().click();
|
await el.$$('div[tg-attachment] .attachment-settings .icon-edit').last().click();
|
||||||
await el.$$('div[tg-attachment] .editable-attachment-comment input').last().sendKeys(name);
|
await el.$$('div[tg-attachment] .editable-attachment-comment input').last().sendKeys(name);
|
||||||
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
|
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
|
||||||
await browser.waitForAngular();
|
return browser.waitForAngular();
|
||||||
},
|
},
|
||||||
|
|
||||||
getFirstAttachmentName: async function () {
|
getFirstAttachmentName: async function () {
|
||||||
|
|
Loading…
Reference in New Issue