-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Update E2E utilities #55322
test: Update E2E utilities #55322
Commits on Oct 12, 2023
-
test: Set static device pixel ratio
WebdriverIO (the replacement for the deprecated WD driver library) does not have a method for retrieving a device's pixel ratio. Therefore, this sets an explicit value for each of our test devices.
Configuration menu - View commit details
-
Copy full SHA for 4f1a4a2 - Browse repository at this point
Copy the full SHA 4f1a4a2View commit details -
test: Update the
getAddBlockButton
utilityUpdate syntax for WebdriverIO, which is a part of the Appium 2 upgrade.
Configuration menu - View commit details
-
Copy full SHA for 46d53b5 - Browse repository at this point
Copy the full SHA 46d53b5View commit details -
test: Update toggleDarkMode utility
Seems this method has changed or been removed for Android.
Configuration menu - View commit details
-
Copy full SHA for 1b83f12 - Browse repository at this point
Copy the full SHA 1b83f12View commit details -
test: Increase robustness of waitForKeyboardToBeHidden utility
This utility appeared to fail occasionally due to an empty `addButton` value.
Configuration menu - View commit details
-
Copy full SHA for 6d30ce6 - Browse repository at this point
Copy the full SHA 6d30ce6View commit details -
test: toggleDarkMode uses consistent approach across platforms
This updates the iOS variant to mirror the structure of the Android variant in the name of consistency.
Configuration menu - View commit details
-
Copy full SHA for e732502 - Browse repository at this point
Copy the full SHA e732502View commit details
Commits on Oct 16, 2023
-
refactor: Rename devicePixelRatio to pixelRatio
Mirror Android implementation found in Appium 2.
Configuration menu - View commit details
-
Copy full SHA for 5d684e2 - Browse repository at this point
Copy the full SHA 5d684e2View commit details -
Attempt to debug CI failures. ``` FAIL __device-tests__/gutenberg-editor-rendering-media-blocks.test.js (73.496 s) ● Gutenberg Editor Rendering Media Blocks test › should be able to render blocks correctly unknown method: Not implemented at getErrorFromResponseBody (file:/Users/runner/work/gutenberg/gutenberg/node_modules/webdriver/build/utils.js:194:12) at NodeJSRequest._request (file:/Users/runner/work/gutenberg/gutenberg/node_modules/webdriver/build/request/index.js:164:23) at Browser.wrapCommandFn (file:/Users/runner/work/gutenberg/gutenberg/node_modules/@wdio/utils/build/shim.js:81:29) ```
Configuration menu - View commit details
-
Copy full SHA for 7bb46de - Browse repository at this point
Copy the full SHA 7bb46deView commit details -
refactor: Prefer
action
totouchAction
Avoid the deprecated `touchAction` command. > The `touchAction` command is deprecated and will be removed in a future version. We recommend to use the action command instead with pointer type touch, e.g.: > > await browser.action('pointer', { > parameters: { pointerType: 'touch' } > }) https://webdriver.io/docs/api/element/touchAction/ This may also relate to the fact that Mobile JSON Wire Protocol is deprecated as well. > Mobile JSON Wire Protocol > > The Mobile JSON Wire Protocol is a super set of mobile commands on top of the JSON Wire Protocol. Given this one is deprecated the Mobile JSON Wire Protocol also got deprecated. Appium might still support some of its commands but it is not recommended to use them. https://webdriver.io/docs/api/protocols#mobile-json-wire-protocol
Configuration menu - View commit details
-
Copy full SHA for bf527ee - Browse repository at this point
Copy the full SHA bf527eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6e6c5 - Browse repository at this point
Copy the full SHA ad6e6c5View commit details -
test: Set default
swipeFromTo
delay valueThis prevents `pause` from being called without a parameter, which throws an error.
Configuration menu - View commit details
-
Copy full SHA for 8e7c4ff - Browse repository at this point
Copy the full SHA 8e7c4ffView commit details