-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Screener test for Chat for V2 themes (#18946)
* Add Screener test for Chat for V2 themes * Fix message selector
- Loading branch information
Showing
7 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
...es/fluentui/docs/src/examples/components/Chat/Types/ChatExampleCompact.shorthand.steps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import { ScreenerTestsConfig } from '@fluentui/scripts/screener'; | ||
import { chatMessageClassName } from '@fluentui/react-northstar'; | ||
|
||
const config: ScreenerTestsConfig = { themes: ['teams', 'teamsDark', 'teamsHighContrast'] }; | ||
const selectors = { | ||
message: `.${chatMessageClassName}`, | ||
}; | ||
|
||
const config: ScreenerTestsConfig = { | ||
themes: ['teams', 'teamsDark', 'teamsHighContrast', 'teamsV2', 'teamsDarkV2'], | ||
steps: [builder => builder.hover(selectors.message).snapshot('Mouse hover on first message')], | ||
}; | ||
|
||
export default config; |
4 changes: 3 additions & 1 deletion
4
...es/fluentui/docs/src/examples/components/Chat/Types/ChatExampleDetails.shorthand.steps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { ScreenerTestsConfig } from '@fluentui/scripts/screener'; | ||
|
||
const config: ScreenerTestsConfig = { themes: ['teams', 'teamsDark', 'teamsHighContrast'] }; | ||
const config: ScreenerTestsConfig = { | ||
themes: ['teams', 'teamsDark', 'teamsHighContrast', 'teamsV2', 'teamsDarkV2'], | ||
}; | ||
|
||
export default config; |
4 changes: 3 additions & 1 deletion
4
...uentui/docs/src/examples/components/Chat/Types/ChatMessageExampleBadge.shorthand.steps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { ScreenerTestsConfig } from '@fluentui/scripts/screener'; | ||
|
||
const config: ScreenerTestsConfig = { themes: ['teams', 'teamsDark', 'teamsHighContrast'] }; | ||
const config: ScreenerTestsConfig = { | ||
themes: ['teams', 'teamsDark', 'teamsHighContrast', 'teamsV2', 'teamsDarkV2'], | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters