Skip to content

Standardise setting of viewport and timestamp, other general cleanup - #698

Open
qroll wants to merge 5 commits into
pre-release/v3from
v3-e2e-cleanup
Open

Standardise setting of viewport and timestamp, other general cleanup#698
qroll wants to merge 5 commits into
pre-release/v3from
v3-e2e-cleanup

Conversation

@qroll

@qroll qroll commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing apis or functionality to change)
  • Documentation (change to documentation, comments or API descriptions)
  • Tests (improvements to unit tests or E2E tests)
  • Other (technical improvements, refactoring, or changes that don't fall into the above categories)

Description of changes

  • Use a common viewport util
  • Switch to story factory when locators are used
  • Remove unnecessary describe blocks
  • Remove style attribute in e2e stories
  • Regenerate snapshots
  • Attempt to reduce flakiness for image button and location api error tests

Checklist

  • Changes follow the project guidelines in CONTRIBUTING.md
  • Looks good on mobile and tablet
  • Updated documentation
  • Added/updated unit tests

@qroll
qroll marked this pull request as ready for review July 29, 2026 05:50
// shares the same bounding box as the main canvas element.
const box = await story.locators.imageEditor.boundingBox();

if (!box) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering why did you choose to throw the error manually instead of something like expect(box).not.toBeNull() and let playwright do the error handling

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.

2 participants