Skip to content

Convert the FAST element package tests from Karma to Playwright#7268

Merged
janechu merged 41 commits intomainfrom
users/janechu/convert-tests-to-playwright
Mar 7, 2026
Merged

Convert the FAST element package tests from Karma to Playwright#7268
janechu merged 41 commits intomainfrom
users/janechu/convert-tests-to-playwright

Conversation

@janechu
Copy link
Copy Markdown
Collaborator

@janechu janechu commented Feb 13, 2026

Pull Request

📖 Description

This PR completes the Karma to Playwright test conversions in the @microsoft/fast-element.

🎫 Issues

Continues work on #7253

👩‍💻 Reviewer Notes

This is a large PR, it can't really be helped because there were so many tests. To try and mitigate the number of changes on things related to removing and re-creating tests, only tests have been converted. Follow up items are listed below to complete this issue.

In addition, though the infrastructure is still there, the Karma tests are no longer running as there are now 0 with these updates.

✅ Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

⏭ Next Steps

  • Update the @microsoft/fast-router Karma tests to Playwright
  • Remove Karma

@janechu janechu force-pushed the users/janechu/convert-tests-to-playwright branch 3 times, most recently from 428627f to 72efa33 Compare February 18, 2026 22:56
@janechu janechu force-pushed the users/janechu/convert-tests-to-playwright branch from 9e365a0 to 68882c9 Compare February 27, 2026 19:08
coverage/*
dist/*
*.spec.ts No newline at end of file
*.spec.ts
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: I'd like to start running prettier and linting against spec files

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We don't do that because it causes formatting issues with the html tag templates which skews test results.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot make a chore issue for enabling prettier and eslint for spec files

Copy link
Copy Markdown

Copilot AI commented Mar 4, 2026

@radium-v I've opened a new pull request, #7299, to work on those changes. Once the pull request is ready, I'll request review from you.

marchbox
marchbox previously approved these changes Mar 4, 2026
Copy link
Copy Markdown
Contributor

@marchbox marchbox left a comment

Choose a reason for hiding this comment

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

No blocking issues.

Comment thread packages/fast-element/src/components/element-controller.pw.spec.ts
Comment thread packages/fast-element/src/components/hydration.pw.spec.ts Outdated
Comment thread packages/fast-element/src/styles/css-binding-directive.pw.spec.ts
Comment thread packages/fast-element/src/testing/fixture.pw.spec.ts
@janechu janechu force-pushed the users/janechu/convert-tests-to-playwright branch from b76ba89 to 140f201 Compare March 6, 2026 23:49
@janechu janechu merged commit 3773405 into main Mar 7, 2026
12 checks passed
@janechu janechu deleted the users/janechu/convert-tests-to-playwright branch March 7, 2026 00:11
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.

4 participants