Skip to content

test(tile-select): refine testing suite - #8064

Draft
paulrobinson88 wants to merge 1 commit into
masterfrom
FE-7662-tile-select-tests
Draft

test(tile-select): refine testing suite#8064
paulrobinson88 wants to merge 1 commit into
masterfrom
FE-7662-tile-select-tests

Conversation

@paulrobinson88

@paulrobinson88 paulrobinson88 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Proposed behaviour

  • Removes duplicate or unneccessary tests from the Playwright file.
  • Consolidates stories to reduce the amount of Chromatic snapshots being captured.
  • Alters the Accessibility reporting to only run locally rather than in the pipeline.
  • Removes a flaky menu playwright test and adds a Chromatic interaction to cover the scenario.

Current behaviour

  • There are a number of tests which are duplicated across the testing suite.
  • There are a large number of Chromatic snapshots being taken which are not needed.
  • The accessibility report is causing the build to fail due to violations.
  • Two of the menu playwright tests fails in this build

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
  • 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 provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

  • Check Chromatic snapshots are being captured correctly.
  • Ensure Accessibility report works locally.

Comment thread playwright-ct.config.ts
@paulrobinson88
paulrobinson88 force-pushed the FE-7662-tile-select-tests branch 4 times, most recently from 5f467ef to 2a327f5 Compare July 8, 2026 12:09
@paulrobinson88
paulrobinson88 marked this pull request as ready for review July 8, 2026 12:48
@paulrobinson88
paulrobinson88 requested review from a team as code owners July 8, 2026 12:48
@paulrobinson88
paulrobinson88 marked this pull request as draft July 8, 2026 12:53
});

test.describe("check props for TileSelect component", () => {
testData.forEach((title) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion: Can we add this into unit testing, as diacritics are not tested anywhere else.

@edleeks87 edleeks87 Jul 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there's tests for title in the unit tests (node and string), I'm not sure what this adds beyond that, this is just passing a string etc

await expect(icon2).toBeVisible();
});

testData.forEach((subtitle) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion: Can we add this into unit testing, as diacritics are not tested anywhere else.

@edleeks87 edleeks87 Jul 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there's tests for subtitle in the unit tests (node and string), I'm not sure what this adds beyond that, this is just passing a string etc

});
});

testData.forEach((description) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion: Can we add this into unit testing, as diacritics are not tested anywhere else.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there's tests for description in the unit tests (node and string), I'm not sure what this adds beyond that, this is just passing a string etc

@paulrobinson88
paulrobinson88 force-pushed the FE-7662-tile-select-tests branch from 2415914 to 618c689 Compare August 7, 2026 10:45
@paulrobinson88
paulrobinson88 marked this pull request as ready for review August 7, 2026 10:54
@paulrobinson88
paulrobinson88 marked this pull request as draft August 7, 2026 10:58
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