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

test: visual tests #216

Merged
merged 7 commits into from
Sep 27, 2024
Merged

test: visual tests #216

merged 7 commits into from
Sep 27, 2024

Conversation

niktverd
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

.github/workflows/pr-playwright-report.yml Outdated Show resolved Hide resolved
.github/workflows/pr-playwright-report.yml Outdated Show resolved Hide resolved
IMAGE_NAME="mcr.microsoft.com/playwright"
IMAGE_TAG="v1.45.3-jammy" # This version have to be synchronized with playwright version from package.json

NODE_MODULES_CACHE_DIR="$HOME/.cache/page-constructor-playwright-docker-node-modules"

Choose a reason for hiding this comment

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

page-constructor -> blog-constructor

playwright/core/expectScreenshotFixture.ts Outdated Show resolved Hide resolved
test.describe('Author', () => {
test('render stories <Default>', async ({mount, expectScreenshot, defaultDelay}) => {
await mount(<Default />);
await defaultDelay();

Choose a reason for hiding this comment

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

await defaultDelay(); is it really necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is necessary

NasgulNexus
NasgulNexus previously approved these changes Sep 26, 2024
@niktverd niktverd merged commit aba9dc8 into main Sep 27, 2024
4 checks passed
@niktverd niktverd deleted the visual_tests branch September 27, 2024 18:00
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