LearnNewsExamplesServices
Frontmatter
id7271
titleConvert Rectangle.mjs Test from Siesta to Playwright
stateClosed
labels
enhancementhelp wantedgood first issuehacktoberfest
assigneestobiu
createdAtSep 27, 2025, 2:40 PM
updatedAtNov 4, 2025, 11:55 AM
githubUrlhttps://github.com/neomjs/neo/issues/7271
authortobiu
commentsCount2
parentIssue7262
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 4, 2025, 11:55 AM

Convert Rectangle.mjs Test from Siesta to Playwright

Closed v11.0.0 enhancementhelp wantedgood first issuehacktoberfest
tobiu
tobiu commented on Sep 27, 2025, 2:40 PM

This task is to migrate the unit test for Rectangle.mjs from the Siesta test harness to the Playwright test runner.

Acceptance Criteria

  1. Create a new test file at test/playwright/unit/Rectangle.spec.mjs.
  2. Translate all assertions from the original file (test/siesta/tests/Rectangle.mjs) to the Playwright/Jest expect syntax.
  3. Ensure the new test runs successfully via npm test.
  4. The new test must cover all the functionality of the original Siesta test.
tobiu added the enhancement label on Sep 27, 2025, 2:40 PM
tobiu added parent issue #7262 on Sep 27, 2025, 2:40 PM
tobiu added the help wanted label on Oct 3, 2025, 6:24 PM
tobiu added the good first issue label on Oct 3, 2025, 6:24 PM
tobiu added the hacktoberfest label on Oct 3, 2025, 6:24 PM
tobiu assigned to @kart-u on Oct 7, 2025, 9:21 PM
tobiu
tobiu Oct 7, 2025, 9:21 PM

oh, missed your comment. hint for this one: the Rectangle class extend DOMRect, which is not available inside node.

so, there is a mock for it inside: test/playwright/setup.mjs

tobiu unassigned from @kart-u on Nov 4, 2025, 11:54 AM
tobiu assigned to @tobiu on Nov 4, 2025, 11:54 AM
tobiu referenced in commit 4a1c81b - "Convert Rectangle.mjs Test from Siesta to Playwright #7271" on Nov 4, 2025, 11:55 AM
tobiu closed this issue on Nov 4, 2025, 11:55 AM