Fixed failing plugin tests

pull/5370/head
ioedeveloper 5 years ago
parent 3422ae0dfd
commit 08a1c938ed
  1. 2
      src/app/components/plugin-manager-settings.js
  2. 9
      test-browser/tests/plugin.js

@ -103,7 +103,7 @@ export class PluginManagerSettings {
<div>
<div class="${css.permissionKey}">
<h6>${key} :</h6>
<i onclick="${() => this.clearAllPersmission(key)}" class="far fa-trash-alt"></i>
<i onclick="${() => this.clearAllPersmission(key)}" class="far fa-trash-alt" data-id="pluginManagerSettingsClearAllPermission"></i>
</div>
${byModule}
</div>`

@ -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()
},

Loading…
Cancel
Save