From aa4ab91e1a83953c3a2b5582bd86c0de194326d5 Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Mon, 22 May 2023 16:19:26 +0200 Subject: [PATCH] Remove e2e type workaround (#1628) This removes an `any` cast that was necessary to make TypeScript happy, but which isn't necessary due to updated type definitions in WebDriverIO: https://github.com/webdriverio/webdriverio/issues/9924 --- src/frontend/src/test-e2e/util.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/src/test-e2e/util.ts b/src/frontend/src/test-e2e/util.ts index 36a9c452cf..95c8c9eb65 100644 --- a/src/frontend/src/test-e2e/util.ts +++ b/src/frontend/src/test-e2e/util.ts @@ -39,12 +39,10 @@ export async function runInBrowser( // Disables permission prompt for clipboard, needed for tests using the clipboard (without this, // the browser window prompts the user to allow or block clipboard access). // https://stackoverflow.com/questions/53669639/enable-clipboard-in-automated-tests-with-protractor-and-webdriver - // XXX: the "any" cast is needed because our webdriverio version only expects numbers, strings - // or bools: https://github.com/webdriverio/webdriverio/issues/9924 prefs: { "profile.content_settings.exceptions.clipboard": { "*": { last_modified: Date.now(), setting: 1 }, - } as any, + }, }, };