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

menu list unit tests #28857

Conversation

brianchristopherbrady
Copy link
Contributor

Adds MenuList playwright tests

@brianchristopherbrady brianchristopherbrady requested a review from a team as a code owner August 14, 2023 22:37
@fabricteam
Copy link
Collaborator

fabricteam commented Aug 14, 2023

🕵 fluentui-web-components-v3 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 14, 2023

📊 Bundle size report

🤖 This report was generated against c7b318221b2bd34b3b60c61c84859e9bc861b0a2

@size-auditor
Copy link

size-auditor bot commented Aug 14, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: c7b318221b2bd34b3b60c61c84859e9bc861b0a2 (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 14, 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 400c424:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

await expect(menuItems.nth(3)).toBeFocused();
});

test('should close the menu when pressing the escape key', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is testing to see if the focus returns to the parent item after the Esc key is pressed. I would reword the test to make your assertion clearer.

await root.evaluate(node => {
node.innerHTML = /* html */ `
<fluent-menu-list>
<fluent-menu-item role="menuitemcheckbox"></fluent-menu-item>
Copy link
Contributor

@halerankin halerankin Aug 15, 2023

Choose a reason for hiding this comment

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

role should be: menuitemradio

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!

Copy link
Contributor

@halerankin halerankin left a comment

Choose a reason for hiding this comment

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

w/ comment

@miroslavstastny miroslavstastny merged commit be3c3cb into microsoft:web-components-v3 Aug 23, 2023
22 checks passed
chrisdholt pushed a commit that referenced this pull request Apr 29, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 30, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request Apr 30, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 2, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 2, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 2, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 3, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 6, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 6, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 8, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
radium-v pushed a commit that referenced this pull request May 10, 2024
* radio init

* styles radio

* reverts branch

* input spec init

* cleans up spec

* formatting

* updates component name to text input

* updates component name in spec

* reverts dead file

* adds menulist unit tests

* menu-list tests: updates test names, fixes role attribute in radio test
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