Skip to content

waitForText and "" #3

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

Closed
eXorus opened this issue Sep 19, 2024 · 2 comments
Closed

waitForText and "" #3

eXorus opened this issue Sep 19, 2024 · 2 comments

Comments

@eXorus
Copy link
Member

eXorus commented Sep 19, 2024

I have a passing test with webdriver that do:

$I->waitForText("results for "dev"")

and it's failing here:

There was 1 failure:
1) SearchCest: Student can search courses and paths | "paths","dev","Web Developer"
 Test  tests/Web/Product/SearchCest.php:studentCanSearchCoursesAndPaths
 Step  Wait for text "results for "dev""
 Fail  locator.isVisible: Unexpected token "dev" while parsing selector ":has-text("results for "dev"")"
Call log:
  -   checking visibility of :has-text("results for "dev"") >> nth=0


Scenario Steps:

 17. $I->waitForText("results for "dev"") at tests/Support/Traits/CustomAssertions.php:55
 16. $I->grabMultiple("#mainSearch ul li a") at tests/Support/Page/Product/SearchPage.php:46
 15. $I->type("dev",1) at tests/Support/Page/Product/SearchPage.php:25
 14. $I->click("#algolia-search-input") at tests/Support/Page/Product/SearchPage.php:24
 13. $I->waitForClickable("#algolia-search-input") at tests/Support/Page/Product/SearchPage.php:23
 12. $I->click("#main-search form") at tests/Support/Page/Product/SearchPage.php:22

I can't to anything because I really search for a text in the html page like this
results for "dev"

@DavertMik
Copy link
Member

@eXorus could you write a failing test and make PR? Seems like the issue is with double quotes here

@DavertMik
Copy link
Member

@eXorus this is a bug in CodeceptJS, I need to fix it there

codeceptjs/CodeceptJS#4523

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

No branches or pull requests

2 participants