Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/vr-tests-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src --ext .ts,.tsx",
"start": "storybook dev",
"type-check": "tsc -p . --baseUrl . --noEmit",
"test-vr": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true --stepsApi parameters"
"test-vr": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true --stepsApi parameters --bailOnStoriesError"
},
"dependencies": {
"react": "19.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
steps: new Steps()
.snapshot('normal', { cropTo: '.testWrapper' })
.executeScript(
'document.getElementsByTagName("fluent-checkbox").forEach(checkbox => checkbox.indeterminate = true)',
'Array.from(document.getElementsByTagName("fluent-checkbox")).forEach(checkbox => checkbox.indeterminate = true)',
)
.snapshot('indeterminate', { cropTo: '.testWrapper' })
.end(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const WithLongText = () =>
</style>
<p class="max-width">
This paragraph contains a link which is very long.
<fluent-link href="#">Fluent links wrap correctly between lines when they are very long.</fluent-link> This is
<fluent-link id="${linkId}" href="#">Fluent links wrap correctly between lines when they are very long.</fluent-link> This is
because they are inline elements.
</p>
`);
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ export const RadioWithIconsRTL = getStoryVariant(RadioWithIcons, RTL);
export const WithSubmenu = () =>
parse(`
<fluent-menu-list>
<fluent-menu-item>
<fluent-menu-item aria-haspopup="menu">
Item 1
<fluent-menu-list slot="submenu">
<fluent-menu-item> Subitem 1.1 </fluent-menu-item>
<fluent-menu-item> Subitem 1.2 </fluent-menu-item>
</fluent-menu-list>
</fluent-menu-item>
<fluent-menu-item>
<fluent-menu-item aria-haspopup="menu">
Item 2
<fluent-menu-list slot="submenu">
<fluent-menu-item> Subitem 2.1 </fluent-menu-item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export default {
storyWright: {
steps: new Steps()
.snapshot('normal', { cropTo: '.testWrapper' })
.click('[role="radio"]:first-child')
.click('fluent-radio:first-child')
.snapshot('1st selected', { cropTo: '.testWrapper' })
.click('[role="radio"]:nth-child(2)')
.click('fluent-radio:nth-child(2)')
.snapshot('2nd selected', { cropTo: '.testWrapper' })
.end(),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default {
storyWright: {
steps: new Steps()
.snapshot('normal', { cropTo: '.testWrapper' })
.focus('[role="slider"]')
.keys('[role="slider"]', Keys.rightArrow)
.focus('fluent-slider')
.keys('fluent-slider', Keys.rightArrow)
.snapshot('rightArrow', { cropTo: '.testWrapper' })
.end(),
},
Expand Down