From b5b71a9879931c9d32ed90087e3d4dea89d39bc6 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 14 Feb 2020 04:22:14 +0000 Subject: [PATCH] Fixed failing plugin tests --- src/app/components/plugin-manager-settings.js | 2 +- test-browser/tests/plugin.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/components/plugin-manager-settings.js b/src/app/components/plugin-manager-settings.js index 3dda640fba..f8cb38cd2b 100644 --- a/src/app/components/plugin-manager-settings.js +++ b/src/app/components/plugin-manager-settings.js @@ -103,7 +103,7 @@ export class PluginManagerSettings {
${key} :
- +
${byModule}
` diff --git a/test-browser/tests/plugin.js b/test-browser/tests/plugin.js index a49d8f8a14..c4385123e8 100644 --- a/test-browser/tests/plugin.js +++ b/test-browser/tests/plugin.js @@ -68,8 +68,9 @@ module.exports = { .frameParent() .useCss().waitForElementVisible('div[data-id="modalDialogContainer"]') .assert.containsText('h4[data-id="permissionHandlerMessage"]', 'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :') - .waitForElementVisible('label[data-id="permissionHandlerRememberChoice"]') + .pause(2000) .click('label[data-id="permissionHandlerRememberChoice"]') + .pause(2000) .modalFooterOKClick() }, @@ -79,7 +80,11 @@ module.exports = { .waitForElementVisible('button[data-id="pluginManagerSettingsButton"]') .click('button[data-id="pluginManagerSettingsButton"]') .waitForElementVisible('div[data-id="modalDialogContainer"]') - .click('i[data-id="pluginManagerSettingsRemovePermissionZoKrates"]') + .click('form[data-id="pluginManagerSettingsPermissionForm"]') + .pause(2000) + .click('i[data-id="pluginManagerSettingsClearAllPermission"]') + .pause(2000) + .assert.containsText('form[data-id="pluginManagerSettingsPermissionForm"]', 'No Permission requested yet') .modalFooterOKClick() .end() },