Skip to content

Conversation

@3y3
Copy link
Member

@3y3 3y3 commented Oct 24, 2025

Note

Adds a workflow to trigger and await parent E2E tests, a new Playwright test ensuring tab switches don’t shift header position, and minor CI/script/config updates.

  • CI:
    • New workflow: /.github/workflows/diplodoc-e2e-tests.yaml triggers parent repo E2E (e2e-tests.yaml), waits for completion, and posts a summary.
    • package-lock check: Run npm i --package-lock-only --ignore-scripts in /.github/workflows/package-lock.yaml.
    • Cleanup: Remove /.github/workflows/tests.yaml (unit tests workflow).
  • Tests:
    • Tabs E2E: In src/tests/tabs/index.ts, add helper getTabElements, position markers, and test to maintain header position when switching tabs.
    • Playwright config: In playwright.config.ts, enable headless and set timeout: 30000.
  • Docs:
    • Tabs demo: In docs/input/ru/syntax/tabs.md, add sections/anchors #position-test-tabs and #position-test-target with sample tabs for position testing.
  • Scripts:
    • Init: In scripts/init, skip Playwright install if cached and improve logging.

Written by Cursor Bugbot for commit 064942f. This will update automatically on new commits. Configure here.

@3y3 3y3 force-pushed the fix-hidden-tabs-height branch from 3d56e1f to 1aa8821 Compare October 24, 2025 16:20
@3y3 3y3 force-pushed the fix-hidden-tabs-height branch from be82adb to c8d970d Compare October 24, 2025 17:02
@3y3 3y3 force-pushed the fix-hidden-tabs-height branch from 47f4cc6 to 064942f Compare November 24, 2025 09:20
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 31

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

const position = await nextHeading.evaluate((el: HTMLElement) => el.offsetTop);
const delta = Math.abs(position - initialHeadingPosition);

expect(delta).toBe(0);
Copy link

Choose a reason for hiding this comment

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

Bug: Overly strict position equality check causes flaky tests

The assertion expect(delta).toBe(0) requires exact pixel-perfect positioning, which is inconsistent with other similar tests in the file that use tolerances like .toBeLessThan(5) or .toBeLessThan(24). Browser sub-pixel rendering, font rendering variations, and layout calculation timing can cause minor position differences, making this test flaky. The strict equality check doesn't account for these normal rendering variations.

Fix in Cursor Fix in Web

--limit 20 \
--json databaseId,status,displayTitle | \
jq -r --arg trigger_id "$TRIGGER_ID" \
'map(select(.status != "completed" and (.displayTitle | contains($trigger_id)))) | .[0].databaseId // empty')
Copy link

Choose a reason for hiding this comment

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

Bug: Race condition filters out fast-completing workflows

The workflow search filters for runs with .status != "completed", which excludes workflows that finish within the initial 10-second sleep period. If the parent E2E workflow completes quickly, it won't be found despite running successfully, causing this workflow to fail with "Failed to find workflow run" even though the tests passed. The filter should include completed runs or use a different approach to identify the triggered workflow.

Fix in Cursor Fix in Web

@3y3 3y3 force-pushed the master branch 2 times, most recently from 516e43a to fc63ecb Compare January 15, 2026 13:22
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