question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

waitUrlEquals fails on a false-positive

See original GitHub issue

Problem: waitUrlEquals triggers an error even though the assertion should pass.

Code:

Scenario('navigation & routing', async function(I) {
	I.amOnPage('http://localhost:8080');
	I.click('Buttons', '.side-panel');
	I.waitUrlEquals('/buttons/single', 2); // <<< ERROR
});

Result:

-- FAILURES:
  1) Example test
	navigation & routing:
	expected url to be http://localhost:8080/ui/buttons/single, but found:
	http://localhost:8080/ui/buttons/single

Is there something I’m doing wrong or is this just a plain bug 🪲 ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:19

github_iconTop GitHub Comments

2reactions
Vorobeykocommented, Dec 12, 2019

ohhhh i understand)))

You use waitUrlEquals - and arg must be full url path) For wait part of url please use waitInUrl

0reactions
elukoyanovcommented, Jan 22, 2020

What about your waitForNavigation config value?

Also, probably we should implement waitForEvents method

Read more comments on GitHub >

github_iconTop Results From Across the Web

waitUrlEquals fails on a false-positive · Issue #2078 - GitHub
Problem: waitUrlEquals triggers an error even though the assertion should pass. Code: Scenario('navigation & routing', async function(I) ...
Read more >
Protractor - CodeceptJS
To test non-Angular applications please make sure you have angular: false in ... i.e. offset < 0 will go to the previous handle...
Read more >
Releases - CodeceptJS
Fixed false positive result when invalid function is called in a helper. See #2997 (opens new window) by abhimanyupandian ...
Read more >
False Positive Pregnancy Test: Chances and Causes
What's more, every pregnancy test is slightly different. Read the instructions before using one to help eliminate the potential for human error ......
Read more >
False Positives - Malwarebytes Forums
Is Malwarebytes incorrectly flagging a program or website? Report it here. Forums. File Detections. Report false positives of programs or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found