Skip to content

Commit

Permalink
fix: disable control's fireEvent for wdi5's api
Browse files Browse the repository at this point in the history
  • Loading branch information
vobu committed Feb 16, 2022
1 parent eba53bd commit ba367c6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions client-side-js/injectUI5.js
Expand Up @@ -164,8 +164,15 @@ async function clientSide_injectUI5(config, waitForUI5Timeout) {
return false
}

// filter not working mehtods
const aFilterFunctions = ["$", "getAggregation", "constructor", "getMetadata"]
// filter not working methods
// and those with a specific api from wdi5/wdio-ui5-service
const aFilterFunctions = [
"$",
"getAggregation",
"constructor",
"getMetadata",
"fireEvent"
]

if (aFilterFunctions.includes(item)) {
return false
Expand Down

0 comments on commit ba367c6

Please sign in to comment.