forked from DevExpress/testcafe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy bypass check for specific request DevExpress#1791 (DevExpress#2209
- Loading branch information
1 parent
c7a806b
commit 688d723
Showing
5 changed files
with
44 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
test/functional/fixtures/proxy/pages/bypass-page-proxy-request.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Index</title> | ||
</head> | ||
<body> | ||
<div id="result"></div> | ||
<script src="http://non-existing-url.xyz"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
test/functional/fixtures/proxy/testcafe-fixtures/bypass-page-proxy-request.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Selector } from 'testcafe'; | ||
|
||
fixture `Open page without proxy but get resource with proxy` | ||
.page `http://localhost:3000/fixtures/proxy/pages/bypass-page-proxy-request.html`; | ||
|
||
test('Should open page without proxy but get resource with proxy', async t => { | ||
await t.expect(Selector('#result').innerText).eql('proxy'); | ||
}); |
This file was deleted.
Oops, something went wrong.