Skip to content

Commit

Permalink
fix: no actions in w3c actions case (#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Jul 20, 2024
1 parent 919e235 commit 8bd2bd6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
failures=$(cat "$RESULTS_XML" | xq --xpath '//testsuite/@failures')
threshold=$(( (failures + errors) * 100 / (tests - skipped) ))
cat "$RESULTS_XML"
if [[ $threshold -gt 10 ]]; then
if [[ $threshold -gt 8 ]]; then
echo "${threshold}% of tests failed"
exit 1
else
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
needs:
- prepare_matrix
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"appium-ios-device": "^2.5.4",
"appium-ios-simulator": "^6.1.7",
"appium-remote-debugger": "^11.3.0",
"appium-webdriveragent": "^8.7.0",
"appium-webdriveragent": "^8.7.8",
"appium-xcode": "^5.1.4",
"async-lock": "^1.4.0",
"asyncbox": "^3.0.0",
Expand Down
13 changes: 13 additions & 0 deletions test/functional/basic/element-e2e-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,19 @@ describe('XCUITestDriver - elements -', function () {
await el.click();

const actions = [
// Selenium clients generate below code for `driver.action.send_keys('a').perform`.
{
type: 'pointer',
id: 'touch',
actions: [
{type: 'pause', duration: 0},
{type: 'pause', duration: 0},
{type: 'pause', duration: 0},
{type: 'pause', duration: 0},
{type: 'pause', duration: 0},
{type: 'pause', duration: 0}
]
},
{
type: 'key',
id: 'keyboard',
Expand Down

0 comments on commit 8bd2bd6

Please sign in to comment.