rsnext/test/lib/browsers
Naoyuki Kanezawa 93678b569b
Do not add locale to link for api route and middleware preflight (#35994)
Fixes https://github.com/vercel/next.js/issues/33578

This PR fixes `Link` component as well to not add locale for api routes since both preflight redirect and link should work the same.

Additionally, it fixes the webdriver method `browser.waitForCondition()` for playwright to not wrap with function string.

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-04-11 15:59:07 +00:00
..
base.ts fix: add locale prefix to middleware preflight url (#35911) 2022-04-07 11:39:49 +00:00
playwright.ts Do not add locale to link for api route and middleware preflight (#35994) 2022-04-11 15:59:07 +00:00
selenium.ts fix: add locale prefix to middleware preflight url (#35911) 2022-04-07 11:39:49 +00:00