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: add playwright visual checks results to correct steps in new ui #617

Merged

Conversation

shadowusr
Copy link
Member

Previously in pwt visual assertions were added as "assertView" commands at the end of the test. This PR makes it so that they are added to corresponding toMatchScreenshot commands.

Demo report: https://nda.ya.ru/t/jzvnUjB779sizC

// Built-in playwright screenshot assertion
(step.data.title.includes('toHaveScreenshot') && step.data.title.includes(image.stateName ?? '')) ||
// Assertions provided by gemini-testing playwright-utils
(step.data.title.includes('toMatchScreenshot')) && (step.children?.[0]?.data as Action)?.title?.includes(image.stateName ?? '')
Copy link
Member

Choose a reason for hiding this comment

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

👍

@shadowusr shadowusr force-pushed the users/shadowusr/INFRADUTY-27961.fix-visual-assertions branch from b33ed87 to 5b50d24 Compare November 26, 2024 11:11
@shadowusr shadowusr merged commit c482679 into master Nov 26, 2024
4 checks passed
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.

2 participants