Skip to content
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

Escape double quotes to not break JavaScript commands #71

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

koehnlein
Copy link

At the moment it is not possible to add more complex selectors that contains double quotes like e.g. [data-foo="bar"]

The JavaScript commands directly use the selector string without escaping them and the JavaScript commands themselves use double quotes. With this simple change, it is possible to use more complex selectors as they can be used in other codeception modules, too.

@buresmi7 buresmi7 self-requested a review April 18, 2022 20:23
@buresmi7
Copy link
Collaborator

@koehnlein some new test with concerned selector would be nice in folder https://github.com/Codeception/VisualCeption/tree/master/test/integration/tests/acceptance :)

@koehnlein
Copy link
Author

@buresmi7 I added a test. I hope, it meets your expectations. :-)

@buresmi7
Copy link
Collaborator

@koehnlein perfect! thank you :)

@buresmi7 buresmi7 merged commit a987fc8 into Codeception:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants