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(progress-tracker): convert tests to playwright - FE-6150 #6454

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

DipperTheDan
Copy link
Contributor

Proposed behaviour

Reactor tests to use Playwright.

Current behaviour

Tests currently use 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

N/A

Copy link

codesandbox-ci bot commented Nov 24, 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 c0331a4:

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

@Parsium Parsium self-requested a review November 27, 2023 14:45
);
});

([[true], [false]] as const).forEach(([boolean]) => {
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
([[true], [false]] as const).forEach(([boolean]) => {
([true, false] as const).forEach(([boolean]) => {

});
});

test.describe(
Copy link
Contributor

Choose a reason for hiding this comment

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

(non-blocking):

Suggested change
test.describe(
test.describe("Accessibility tests", () => {

@@ -0,0 +1,21 @@
import type { Page } from "@playwright/test";
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
import type { Page } from "@playwright/test";
import { Page } from "@playwright/test";

ZhuoyuJin
ZhuoyuJin previously approved these changes Nov 29, 2023
@@ -152,6 +152,7 @@ const ProgressTracker = ({
error={error}
>
<InnerBar
data-element="inner-bar"
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: like the addition of a new test tag for greater specificity

src/components/progress-tracker/progress-tracker.pw.tsx Outdated Show resolved Hide resolved
playwright/components/progress-tracker/index.ts Outdated Show resolved Hide resolved
src/components/progress-tracker/progress-tracker.pw.tsx Outdated Show resolved Hide resolved
src/components/progress-tracker/progress-tracker.pw.tsx Outdated Show resolved Hide resolved
@Parsium Parsium marked this pull request as ready for review December 5, 2023 09:58
@Parsium Parsium requested review from a team as code owners December 5, 2023 09:58
@DipperTheDan DipperTheDan force-pushed the FE-6150_progress-tracker-pw-refactor branch from de60578 to 1e7883d Compare December 5, 2023 13:41
@DipperTheDan DipperTheDan merged commit 5975482 into master Dec 5, 2023
@DipperTheDan DipperTheDan deleted the FE-6150_progress-tracker-pw-refactor branch December 5, 2023 15:20
@carbonci
Copy link
Collaborator

carbonci commented Dec 6, 2023

🎉 This PR is included in version 124.2.0 🎉

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