-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Adds unit tests for CounterBadge #28867
Adds unit tests for CounterBadge #28867
Conversation
🕵 fluentui-web-components-v3 No visual regressions between this PR and main |
📊 Bundle size report🤖 This report was generated against 2c97f929d3fd505f65f4094a4f45fbc008eb2b9d |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 2c97f929d3fd505f65f4094a4f45fbc008eb2b9d (build) |
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 8aca87f:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple flaky tests are reported:
8 flaky
[chromium] › src/counter-badge/counter-badge.spec.ts:73:3 › CounterBadge component › should show 0 when showZero is set programmatically
[chromium] › src/counter-badge/counter-badge.spec.ts:89:3 › CounterBadge component › should not show 0 when showZero is set programmatically
[chromium] › src/counter-badge/counter-badge.spec.ts:121:3 › CounterBadge component › should show and hide dot programmatically
[firefox] › src/counter-badge/counter-badge.spec.ts:73:3 › CounterBadge component › should show 0 when showZero is set programmatically
[firefox] › src/counter-badge/counter-badge.spec.ts:89:3 › CounterBadge component › should not show 0 when showZero is set programmatically
[firefox] › src/counter-badge/counter-badge.spec.ts:121:3 › CounterBadge component › should show and hide dot programmatically
[webkit] › src/counter-badge/counter-badge.spec.ts:73:3 › CounterBadge component › should show 0 when showZero is set programmatically
[webkit] › src/counter-badge/counter-badge.spec.ts:89:3 › CounterBadge component › should not show 0 when showZero is set programmatically
…procload/counterBadgeTests
…procload/counterBadgeTests
@@ -96,6 +94,7 @@ test.describe('CounterBadge component', () => { | |||
|
|||
const shadowContent = await page.evaluate(() => { | |||
const element = document.querySelector('fluent-counter-badge'); | |||
console.log(element); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the console.log()
I still see flaky tests:
Edit: another run:
|
Still red:
|
@@ -26,7 +26,7 @@ module.exports = /** @type {Omit<import('../../../.storybook/main').StorybookCon | |||
backgrounds: false, | |||
viewport: false, | |||
toolbars: false, | |||
actions: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional or just a debugging left over?
e414e26
into
microsoft:web-components-v3
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
* Adds tests for counterBadge * Removes tests for slotted icon content * Adds tests to verify if showZero and dot are able to be set programmatically * Fixes linting errors * Changes beforeAll to beforeEach to fix flaky tests * Removes .only * Tries to unflake * Adds fixes for flaky tests * Updates tests without shadowContent query
New Behavior
Adds tests for CounterBadge