playwright/tests
Rui Figueira 73ffaf65d7
fix(codegen): fill action prevents omnibox navigation recording (#29790)
This PR is a fix proposal for a bug when trying to record a omnibox
navigation after a recorded action (e.g., `fill`).

The following test, included in this PR, reproduces the problem:

```ts
  test('should record omnibox navigations after recordAction', async ({ page, openRecorder, server }) => {
    const recorder = await openRecorder();
    await recorder.setContentAndWait(`<textarea></textarea>`);
    await Promise.all([
      recorder.waitForOutput('JavaScript', 'fill'),
      page.locator('textarea').fill('Hello world'),
    ]);
    // for performed actions, 5 seconds is the time needed to ensure they are committed
    await page.waitForTimeout(5000);
    await page.goto(server.PREFIX + `/empty.html`);
    await recorder.waitForOutput('JavaScript', `await page.goto('${server.PREFIX}/empty.html');`);
  });
```

After performed actions (e.g., `click`), it successfully records the
navigation as long as there's at least a 5 sec. gap between both
actions. That happens because after that 5 sec. interval the performed
action is automatically commited and therefore the navigation is not
stored as a signal of that action.

The proposed fix for recorded actions also forces that action to be
automatically commited after 5 sec (for testing, I'm using 500ms to
speed up the test execution).
2024-03-04 12:31:03 -08:00
..
android chore: do not use project id in telereporter (#29776) 2024-03-01 21:44:08 -08:00
assets feat(chromium): expose parameters to generate outline / tagged PDF (#29494) 2024-02-15 17:28:04 +01:00
components feat(ct): double unmounting component throws error (#29650) 2024-02-26 11:16:27 -08:00
config chore: add find-related-tests command (#29439) 2024-02-09 19:02:42 -08:00
electron chore: do not use project id in telereporter (#29776) 2024-03-01 21:44:08 -08:00
image_tools chore: bump @babel dependencies (#27632) 2023-10-17 20:52:41 +02:00
installation fix: point to the right cli program export (#29715) 2024-02-28 14:05:42 -08:00
library fix(codegen): fill action prevents omnibox navigation recording (#29790) 2024-03-04 12:31:03 -08:00
page Revert "chore(role): cache element list by role (#29130)" (#29765) 2024-03-01 09:37:28 -08:00
playwright-test chore: do not use project id in telereporter (#29776) 2024-03-01 21:44:08 -08:00
stress fix(dispatchers): separate gc bucket for main frame, increased limit (#28629) 2023-12-14 10:42:08 -08:00
third_party/proxy test: vendor 'proxy' dependency (#29370) 2024-02-05 21:57:14 +01:00
webview2 test: use net8.0 for webview2 tests (#28665) 2023-12-15 13:03:33 -08:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
index.d.ts test: added tests for WebSocket over Socks proxy (#7235) 2021-06-24 18:50:16 +02:00
tsconfig.json test: add installation tests for supposed plugin story (#27331) 2023-09-28 17:18:22 -07:00