pull/5370/head
bunsenstraat 3 years ago committed by yann300
parent 2f8682835a
commit 9b0cfc038e
  1. 2
      apps/remix-ide-e2e/src/tests/plugin_api.ts
  2. 4
      apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx

@ -82,7 +82,7 @@ const checkForAcceptAndRemember = async function (browser: NightwatchBrowser) {
// @ts-ignore
browser.frame(0, () => { resolve(true) })
} else {
browser.waitForElementVisible('//*[@data-id="permissionHandlerRememberUnchecked"]').click('//*[@data-id="permissionHandlerRememberUnchecked"]').waitForElementVisible('//*[@id="modal-footer-ok"]').click('//*[@id="modal-footer-ok"]', () => {
browser.waitForElementVisible('//*[@data-id="permissionHandlerRememberUnchecked"]').click('//*[@data-id="permissionHandlerRememberUnchecked"]').waitForElementVisible('//*[@data-id="PermissionHandler-modal-footer-ok-react"]').click('//*[@id="PermissionHandler-modal-footer-ok-react"]', () => {
// @ts-ignore
browser.frame(0, () => { resolve(true) })
})

@ -96,8 +96,8 @@ export class PermissionHandlerPlugin extends Plugin {
id: 'PermissionHandler',
title: `Permission needed for ${to.displayName || to.name}`,
message: <PermissionHandlerDialog plugin={this} theme={await this.getTheme()} value={value}></PermissionHandlerDialog>,
okLabel: 'sure',
cancelLabel: 'no'
okLabel: 'Accept',
cancelLabel: 'Decline'
}
const result = await this.call('modal', 'modal', modal)

Loading…
Cancel
Save