You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add seeCurrentPathEquals method to ignore query strings (#5435)
* Add seeCurrentPathEquals method to ignore query strings
Adds new assertion method to check URL path equality while ignoring
query parameters and URL fragments.
- I.seeCurrentPathEquals('/info') passes for '/info?user=1', '/info#section'
- I.seeCurrentPathEquals('/') passes for '/', '/?user=ok', '/#top'
Implemented in Playwright, Puppeteer, and WebDriver helpers using native
URL class for pathname extraction.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add dontSeeCurrentPathEquals method for negative path assertions
Adds the negative counterpart to seeCurrentPathEquals for checking
that URL paths do not match, ignoring query strings and fragments.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Refactor WebDriver seeCurrentPathEquals to use equals().assert/negate pattern
Aligns WebDriver.js implementation with Playwright.js and Puppeteer.js
by using the consistent `equals('url path').assert()` and `.negate()`
pattern instead of custom assert.equal and manual error throwing.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Fix test router to handle query strings in URL paths
Changed glue.php router to strip query strings from REQUEST_URI before
matching route patterns. This fixes 500 errors when accessing URLs
like /info?user=test because the regex pattern ^/info/?$ didn't
match /info?user=test.
Changed from:
$path = $_SERVER['REQUEST_URI'];
To:
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: DavertMik <davert@testomat.io>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments