playwright/packages
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
..
html-reporter clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
playwright chore: set minimum version to Node.js 14 (#13469) 2022-04-26 17:52:32 +02:00
playwright-chromium chore: set minimum version to Node.js 14 (#13469) 2022-04-26 17:52:32 +02:00
playwright-core fix(codegen): do not reset current source on every recorded action (#13925) 2022-05-04 17:16:24 +01:00
playwright-ct-react clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
playwright-ct-svelte clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
playwright-ct-vue clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
playwright-firefox chore: set minimum version to Node.js 14 (#13469) 2022-04-26 17:52:32 +02:00
playwright-test clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
playwright-webkit chore: set minimum version to Node.js 14 (#13469) 2022-04-26 17:52:32 +02:00
recorder fix(codegen): do not reset current source on every recorded action (#13925) 2022-05-04 17:16:24 +01:00
trace-viewer clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
web clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00