-
Notifications
You must be signed in to change notification settings - Fork 3.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
SAP/ui5-webcomponents incompatibility: Current electron version doesn't support ':dir(rtl)' selector #29766
Comments
@I585157 Could you link to where you have narrowed this down to Electron and it being fixed in a later version? |
@jennifer-shehane I used the following repo https://github.com/electron/electron-quick-start to test different versions of electron to identify where the error |
@I585157 Thanks! This is really helpful. Unfortunately our Electron upgrade is blocked. Version 28 has a breaking change and version 29 has a bug in v8 that we're waiting for Chromium to respond to, but we'll be actively seeking resolution of that this quarter. See #28943 (comment) |
@jennifer-shehane , Based on the most recent comment on the Chromium bug report, it looks like there's a confirmed temporary workaround that fixes the problem. Based on this, Are you able to share an updated timeline by when this issue can be addressed? |
@dkris We still need to update Electron, so we're aiming for the end of year to have that done. 🤞🏻 |
Current behavior
The current electron version doesn't support the :dir global attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir). Running e2e tests on applications that use later versions of SAP's ui5-webcomponents and ui5-webcomponents-react causes unexpected and incorrect test behavior. This is due to the following error:
Uncaught DOMException: Failed to execute 'matches' on 'Element': ':dir(rtl)' is not a valid selector.
that occurs when the :dir() attribute is utilized. While this issue was found through testing with ui5-webcomponents, this problem can persist elsewhere.Desired behavior
Tests that are run on applications/components utilizing the :dir() property should run as expected.
Test code to reproduce
I have setup a sample react based application using the latest version of SAP/ui5-webcomponents, SAP/ui5-webcomponents-react, and Cypress. Here is the link: https://github.com/caroline-ferri/my-app, let me know if you have trouble accessing it.
Reproduction Steps:
Uncaught DOMException: Failed to execute 'matches' on 'Element': ':dir(rtl)' is not a valid selector.
is preventing the Carousel from being properly renderedCypress Version
13.10.0
Node version
v18.18.0
Operating System
macOS
Debug Logs
No response
Other
Related to: #28943
The text was updated successfully, but these errors were encountered: