pull/1917/head
bunsenstraat 3 years ago committed by yann300
parent 6f1ea6e8e7
commit e6adef0c5a
  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