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

SANTA-6: Refactor monkey testing to stay on localhost sites #153

Merged
merged 14 commits into from
Apr 14, 2022
Prev Previous commit
Next Next commit
Code styling
DemeSzabolcs committed Apr 12, 2022
commit fa8fca3f971ea9c39bae885fa914d09e1cb9ea49
4 changes: 2 additions & 2 deletions Lombiq.Tests.UI/MonkeyTesting/MonkeyTestingOptions.cs
Original file line number Diff line number Diff line change
@@ -52,8 +52,8 @@ public sealed class MonkeyTestingOptions
@"gremlins.species.clicker({
log: true,
canClick: (element) => {
for ( ; element && element !== document; element = element.parentNode ) {
if(!(/https:\/\/localhost:\d\d\d\d.*/.test(element.href) || !element.hasAttribute('href'))) {
for (; element && element !== document; element = element.parentNode) {
if (!(/https:\/\/localhost:\d\d\d\d.*/.test(element.href) || !element.hasAttribute('href'))) {
Piedone marked this conversation as resolved.
Show resolved Hide resolved
return false;
}
}