From 9b0cfc038e3830ee9a8b0d0c482ade4f4628fb76 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Tue, 11 Jan 2022 13:52:10 +0100 Subject: [PATCH] fix test --- apps/remix-ide-e2e/src/tests/plugin_api.ts | 2 +- apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/plugin_api.ts b/apps/remix-ide-e2e/src/tests/plugin_api.ts index b303864438..638ffc2b17 100644 --- a/apps/remix-ide-e2e/src/tests/plugin_api.ts +++ b/apps/remix-ide-e2e/src/tests/plugin_api.ts @@ -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) }) }) diff --git a/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx b/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx index 530a8dfba2..ce76cc7cc6 100644 --- a/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx +++ b/apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx @@ -96,8 +96,8 @@ export class PermissionHandlerPlugin extends Plugin { id: 'PermissionHandler', title: `Permission needed for ${to.displayName || to.name}`, message: , - okLabel: 'sure', - cancelLabel: 'no' + okLabel: 'Accept', + cancelLabel: 'Decline' } const result = await this.call('modal', 'modal', modal)