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

[cypress-tools]: cypress plugin snapshot added #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iBrianWarner
Copy link
Contributor

No description provided.

Cypress.Commands.add('getByDataCy', (selector) => {
cy.get(`[data-cy="${selector}"]`);
});

addMatchImageSnapshotCommand({
failureThreshold: 3.0,
Copy link
Contributor

Choose a reason for hiding this comment

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

я б не робив такого. Це не допоможе з flaky, але зробить тести ненадійними

@@ -61,6 +61,7 @@
"@types/jest": "^26.0.20",
"@types/node": "^14.14.35",
"@types/sinon": "^9.0.10",
"cypress-image-snapshot": "^4.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

no, you should add it to cypress-tools

@iBrianWarner iBrianWarner force-pushed the add_img_snapshot_cypress branch from 6258b6c to 376b88f Compare April 20, 2022 10:11
@@ -1,5046 +1,9 @@
{
"name": "@mate-academy/cypress-tools",
"version": "1.0.3",
"lockfileVersion": 2,
Copy link
Contributor

Choose a reason for hiding this comment

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

чому пропав весь контент файлу?

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