Skip to content

fix(playwright): Fixed global page size flakiness - #33058

Merged
harshach merged 7 commits into
mainfrom
fix-global-page-size
Sep 9, 2026
Merged

harshach merged 7 commits into
mainfrom
fix-global-page-size

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Screenshot 2026-09-09 at 7 29 40 PM

Fixes #

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Summary by Gitar

  • Test fixes:
    • Fixed global page size flakiness in Playwright tests by improving dropdown interaction robustness
    • Updated eslint suppression baseline for positional locators

This will update automatically on new commits.

@Rohit0301 Rohit0301 self-assigned this Sep 9, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 553 → 554
- 1 added, 0 removed, 3 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/common/Table/TableV2.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/DataQuality/TestSuite/TestSuitePipelineTab/TestSuitePipelineTab.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/IngestionListTable/IngestionListTable.tsx

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@gitar-bot

gitar-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Fixes global page size flakiness in Playwright tests by improving dropdown interaction robustness and updating eslint suppression baseline for positional locators. No issues found.

✅ 1 resolved
✅ Edge Case: menuitem locator no longer scoped to visible dropdown

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/GlobalPageSize.spec.ts:36-43
The old locator was scoped to .ant-dropdown:not(.ant-dropdown-hidden) so it only matched the item inside the currently-open dropdown. The new page.getByRole('menuitem', { name: '25 / Page' }) matches across the whole page. AntD keeps menu items mounted in the DOM while hidden, so if more than one '25 / Page' menuitem is ever present this becomes a Playwright strict-mode violation (and menuItem.isVisible()/.click() may target a hidden/wrong instance), reintroducing flakiness. Re-scope the locator to the visible dropdown, e.g. page.locator('.ant-dropdown:not(.ant-dropdown-hidden)').getByRole('menuitem', { name: '25 / Page' }).

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants