Skip to content

Comments

merge upstream#42

Merged
ruifigueira merged 133 commits intomainfrom
merge-upstream-v1.52.0
Apr 24, 2025
Merged

merge upstream#42
ruifigueira merged 133 commits intomainfrom
merge-upstream-v1.52.0

Conversation

@ruifigueira
Copy link
Collaborator

@ruifigueira ruifigueira commented Apr 22, 2025

Meantime, newer versions of playwright-mcp were release that depend on changes post-1.52.0, so I'm merging upstream main branch

dependabot bot and others added 30 commits April 2, 2025 18:37
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
We don't take before/after snapshot for `test.step`. To approximate the snapshots we could take either snapshots from the nested actions or from the outer ones. The current logic is the following:

**beforeSnapshot:**
- `beforeSnapshot` is always taken from the last finished action before the step. It also works nice for the actions without nested actions, such as simple `expect(1).toBe(1);`

**afterSnapshot:**
- We always use `afterSnapshot` from a "nested" action, if there is one. It is exactly what we want for `test.step` and it is acceptable for other actions.
- If there are no "nested" actions, use the `beforeSnapshot` 
  -  works best for simple `expect(a).toBe(b);` case
  - `test.step` without children with snapshot is likely a step with a bunch of `expect(a).toBe(b);` and the same logic as for single expect applies.

Fixes microsoft/playwright#35285
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Signed-off-by: Max Schmitt <max@schmitt.mx>
microsoft-playwright-automation bot and others added 16 commits April 22, 2025 15:22
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
@ruifigueira ruifigueira changed the title Merge upstream v1.52.0 WIP: merge upstream v1.52.0 Apr 23, 2025
@ruifigueira ruifigueira force-pushed the merge-upstream-v1.52.0 branch from 2d66e42 to 0fe3651 Compare April 23, 2025 23:44
@ruifigueira ruifigueira changed the title WIP: merge upstream v1.52.0 merge upstream Apr 23, 2025
@ruifigueira ruifigueira merged commit 5c5a0c9 into main Apr 24, 2025
3 of 4 checks passed
@ruifigueira ruifigueira deleted the merge-upstream-v1.52.0 branch April 24, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.