From 4d83b1eeb32199a41b64de47228d7470c4cf984d Mon Sep 17 00:00:00 2001 From: Giovanni Pellerano Date: Tue, 7 Jul 2020 17:29:47 +0200 Subject: [PATCH] Add await to protractor calls that require it --- client/tests/test-admin-configure-languages.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/tests/test-admin-configure-languages.js b/client/tests/test-admin-configure-languages.js index 9dd645ef92..566fc06279 100644 --- a/client/tests/test-admin-configure-languages.js +++ b/client/tests/test-admin-configure-languages.js @@ -12,17 +12,17 @@ describe("admin configure languages", function() { await element(by.cssContainingText("a", "Languages")).click(); - element(by.model("GLTranslate.state.language")).element(by.xpath(".//*[text()='Deutsch']")).click(); + await element(by.model("GLTranslate.state.language")).element(by.xpath(".//*[text()='Deutsch']")).click(); expect(await browser.isElementPresent(element(by.cssContainingText("a", "Site settings")))).toBe(false); expect(await browser.isElementPresent(element(by.cssContainingText("a", "Seiteneinstellungen")))).toBe(true); - element(by.model("GLTranslate.state.language")).element(by.xpath(".//*[text()='Italiano']")).click(); + await element(by.model("GLTranslate.state.language")).element(by.xpath(".//*[text()='Italiano']")).click(); expect(await browser.isElementPresent(element(by.cssContainingText("a", "Seiteneinstellungen")))).toBe(false); expect(await browser.isElementPresent(element(by.cssContainingText("a", "Impostazioni sito")))).toBe(true); - element(by.model("GLTranslate.state.language")).element(by.xpath(".//*[text()='English']")).click(); + await element(by.model("GLTranslate.state.language")).element(by.xpath(".//*[text()='English']")).click(); expect(await browser.isElementPresent(element(by.cssContainingText("a", "Impostazioni sito")))).toBe(false); expect(await browser.isElementPresent(element(by.cssContainingText("a", "Site settings")))).toBe(true);