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

fix: Chat test dry run - Add VR class to the html #180

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

cansuaa
Copy link
Contributor

@cansuaa cansuaa commented Jan 16, 2025

Issue #, if available: AWSUI-60272

Description of changes: The chat test in dry run was failing because classic components were being used, adding the VR classname so the tests run with VR components instead. The test is now passing in this PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@cansuaa cansuaa requested a review from a team as a code owner January 16, 2025 14:15
@cansuaa cansuaa requested review from just-boris and removed request for a team January 16, 2025 14:15
pan-kot
pan-kot previously approved these changes Jan 16, 2025
@@ -42,7 +42,7 @@ function createHtml({ title, headImports, bodyImports, bodyContent }) {
<link href="vendor.css" rel="stylesheet">
${headImports}
</head>
<body id="b">
<body id="b" class="awsui-visual-refresh">
Copy link
Member

Choose a reason for hiding this comment

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

This is "demos" package, an example how to use our components.

But the actual usage of our @cloudscape-design/components package does not need this class, so this is misleading.

Because it is a temporary workaround, setting it is fine, but let's leave a comment that it is not needed in real use-cases

Copy link
Member

Choose a reason for hiding this comment

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

Also, we need to invite @michaeldowseza to discuss a long term solution here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment.

@cansuaa cansuaa merged commit 621d33f into main Jan 16, 2025
5 checks passed
@cansuaa cansuaa deleted the cansua/fix-chat-test-dry-run branch January 16, 2025 14:42
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.

3 participants