playwright/packages/playwright-core/src/server/recorder
Dmitry Gozman cd53346594
fix(codegen): do not reset current source on every recorded action (#13925)
Currently, when I choose "Java" in the sources list and then
click on the page to generate the "click" action, sources reset
to "JavaScript". This is very inconvenient.

This changes the logic to only forcefully change files if either
old or new file is a user file, not a generated one.

Use cases considered:
- run `codegen`, click around, choose different language, click more;
- run script with inspector, pause, click "Record" and record an action;
- same as above, but then continue and see that user source is revealed.
2022-05-04 17:16:24 +01:00
..
codeGenerator.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
csharp.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
DEPS.list chore: bundle core deps (#13621) 2022-04-18 20:20:49 -07:00
java.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
javascript.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
language.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
python.ts feat(codegen): brush up context options in pytest codegen (#13924) 2022-05-04 11:14:53 +01:00
recorderActions.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
recorderApp.ts fix(codegen): do not reset current source on every recorded action (#13925) 2022-05-04 17:16:24 +01:00
recorderTypes.ts fix(codegen): do not reset current source on every recorded action (#13925) 2022-05-04 17:16:24 +01:00
recorderUtils.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00
utils.ts chore: flatten supplements (#13437) 2022-04-08 12:52:40 -07:00