microsoft / microsoft/playwright
[Feature]is it possible to reuse static resouces cache of previous test run ?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 96.3k
- Forks
- 6.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 180
Description
Test Case 1 :
new context()
page.goto("https://example.com");
Test Case 2
new context()
page.goto("https://example.com");
I want to reuse all the static resource cache from Test Case 1 in Test Case 2, so that this test case will not download the resources anymore, it will be very useful when it accesses some websites with large file resources
In [Isolation](https://playwright.dev/docs/browser-contexts) mode, Is there a way to achieve it?
PS: Just want to reuse the static resources not cookies or storage.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Isolation browser-context documentation and the reported `new context()` and `page.goto()` flow. Define whether static resources can be reused between the two contexts while cookies and storage remain isolated; done means the second test avoids downloading those resources.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100