https://github.com/bxt/testcafe-2140
Example regression test for bug DevExpress/testcafe-hammerhead#2140
https://github.com/bxt/testcafe-2140
Last synced: 9 months ago
JSON representation
Example regression test for bug DevExpress/testcafe-hammerhead#2140
- Host: GitHub
- URL: https://github.com/bxt/testcafe-2140
- Owner: bxt
- License: gpl-3.0
- Created: 2019-09-17T15:48:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T16:03:06.000Z (almost 7 years ago)
- Last Synced: 2025-06-13T11:56:32.199Z (about 1 year ago)
- Language: TypeScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
testcafe-2140
=============
Example regression test for bug [DevExpress/testcafe-hammerhead#2140](https://github.com/DevExpress/testcafe-hammerhead/issues/2140).
Run against GitHub pages of this repo:
```sh
testcafe chrome test-gh.ts
```
Run locally:
```sh
python -m SimpleHTTPServer 80 &
testcafe chrome test.ts
```
The problem is that the following two expressions return the same thing when visiting the page in a browser:
```js
window.location.origin
new Request('/').url
```
But the second one is something like `http://0.0.0.0:12345/8RWZTuU_s/https://bxt.github.io/testcafe-2140/` when run via testcafe.