Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(fieldset): playwright refactor #6366

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

stephenogorman
Copy link
Contributor

@stephenogorman stephenogorman commented Oct 12, 2023

Proposed behaviour

Refactor Fieldset tests from Cypress to Playwright

Current behaviour

Tests are currently Cypress

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Cypress automation tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in CodeSandbox/storybook
  • Add new Cypress test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

N/A

Testing instructions

Testing instructions

  • Run Fieldset tests in Playwright Test Runner to check if the fieldset.pw.tsx file passed
  • Run all other tests in Playwright Test Runner to check none of the other *.pw.tsx files have regressed

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 12, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 14b6397:

Sandbox Source
carbon-quickstart Configuration
carbon-quickstart-typescript Configuration

@Parsium Parsium self-requested a review October 13, 2023 09:28
["rgb(102, 132, 148)", "warning", false],
["rgb(102, 132, 148)", "info", false],
] as [string, string, boolean][]).forEach(([borderColor, type, bool]) => {
test(`should verify input border colour is ${borderColor} when validation is ${type} and boolean prop is ${bool}`, async ({
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
test(`should verify input border colour is ${borderColor} when validation is ${type} and boolean prop is ${bool}`, async ({
test(`should verify input border color is ${borderColor} when validation is ${type} and boolean prop is ${bool}`, async ({

["rgb(102, 132, 148)", "warning", false],
["rgb(102, 132, 148)", "info", false],
].forEach((borderColor, type, bool) => {
test(`should pass accessibility tests with input border colour ${borderColor} when validation is ${type} and boolean prop is ${bool}`, async ({
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
test(`should pass accessibility tests with input border colour ${borderColor} when validation is ${type} and boolean prop is ${bool}`, async ({
test(`should pass accessibility tests with input border color ${borderColor} when validation is ${type} and boolean prop is ${bool}`, async ({

@stephenogorman stephenogorman marked this pull request as ready for review October 25, 2023 13:09
@stephenogorman stephenogorman requested review from a team as code owners October 25, 2023 13:09
@stephenogorman stephenogorman merged commit ba19c7b into master Oct 25, 2023
@stephenogorman stephenogorman deleted the pw_refactor_fieldset branch October 25, 2023 13:56
@carbonci
Copy link
Collaborator

🎉 This PR is included in version 123.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants