Skip to content

Commit

Permalink
Remove e2e type workaround (#1628)
Browse files Browse the repository at this point in the history
This removes an `any` cast that was necessary to make TypeScript happy,
but which isn't necessary due to updated type definitions in
WebDriverIO: webdriverio/webdriverio#9924
  • Loading branch information
nmattia committed May 22, 2023
1 parent 50a090a commit aa4ab91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/frontend/src/test-e2e/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
};

Expand Down

0 comments on commit aa4ab91

Please sign in to comment.