-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: server side mocking #34403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
feat: server side mocking #34403
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
6f3504d
feat: MockingProxy
Skn0tt 64000f8
Update docs/src/api/class-mockingproxyfactory.md
Skn0tt b2b9fe8
remove fixme
Skn0tt d3a78eb
remove map to prevent leak
Skn0tt ad1b86b
Merge remote-tracking branch 'refs/remotes/origin/mockingproxy' into …
Skn0tt 048f6d9
more
Skn0tt 10646b1
move under own dispatcher
Skn0tt 7467885
some more
Skn0tt d615fd3
more
Skn0tt 51b6696
add events
Skn0tt 7f9c091
remove .off
Skn0tt 1112663
more
Skn0tt b236072
fix all tests
Skn0tt a6bf1f4
one more test
Skn0tt d6bc3cf
rename _request
Skn0tt a4d4b5a
revert
Skn0tt 3d89657
remove get-free-port
Skn0tt bb3defd
add draft for mock-js
Skn0tt e0e8f2e
move over
Skn0tt e580a4c
move stuff over to page
Skn0tt fdad749
uninstall
Skn0tt e0de516
only emit one event
Skn0tt 7c598a7
move route._context
Skn0tt 4d6a453
revert unneeded
Skn0tt 0ae6af5
Merge branch 'main' into mockingproxy
Skn0tt 7444a76
fix link
Skn0tt f0e54a4
more lint
Skn0tt c5aad39
lint
Skn0tt 27f8be2
revert subscription logic
Skn0tt b2722c6
singular until we have a usecase
Skn0tt 2652338
fix tests, don't emit on page
Skn0tt 2921418
add property tests
Skn0tt fdfd8be
test securitydetails
Skn0tt f6685fc
test aborting
Skn0tt b1021f4
test fetch
Skn0tt 303531a
delete unneeded file
Skn0tt a0ce23d
update header name
Skn0tt a1618d2
more lint
Skn0tt f2cba29
box the fixture to hide it
Skn0tt f3e0c20
inject page info
Skn0tt e4e743c
rename a little
Skn0tt 694931a
test page.route
Skn0tt 4887ca6
emit on page, even if we don't know what's the correct one
Skn0tt edff9fc
call it correlation
Skn0tt d199c51
use fallback
Skn0tt 662d3b2
more fallback
Skn0tt 4d4ca68
refactor
Skn0tt e7e5124
refactor
Skn0tt 4a4d930
remove instance prop
Skn0tt 8db16b2
set frame from outside
Skn0tt 75a8ace
add more events
Skn0tt bcf1240
more events
Skn0tt e2fe511
test failure
Skn0tt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,18 @@ | ||
| # class: MockingProxyFactory | ||
| * since: v1.51 | ||
|
|
||
| This class is used for creating [MockingProxy] instances which in turn can be used to intercept network traffic from your application server. An instance | ||
| of this class can be obtained via [`property: Playwright.mockingProxy`]. For more information | ||
| see [MockingProxy]. | ||
|
|
||
| ## async method: MockingProxyFactory.newProxy | ||
| * since: v1.16 | ||
| - returns: <[MockingProxy]> | ||
|
|
||
| Creates a new instance of [MockingProxy]. | ||
|
|
||
| ### param: MockingProxyFactory.newProxy.port | ||
| * since: v1.51 | ||
| - `port` <[int]> | ||
|
|
||
| Port to listen on. | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.