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

Functionality of the plugin #206

Open
juancoan opened this issue Feb 21, 2022 · 0 comments
Open

Functionality of the plugin #206

juancoan opened this issue Feb 21, 2022 · 0 comments

Comments

@juancoan
Copy link

juancoan commented Feb 21, 2022

hi Meinaart
How are you? I hope doing well.

I wanted to contact you in regards to this plugin. I think it is great. However, I am not sure exactly if I understood the funcitonality.
When I execute the code, I see it passes... but when check the results, that's where I am confused.
This plug in is to get text from an HTML tag for example body and save it as an screenshot? or does it actually compares the taken screenshot to another one?
for example when I see the test where is extracts content from the body html tag from "[data-test=test]" and then you call the .toMatchSnapshot() function. So what does it do?
Does it only take an screenshot of the page?
Or does it take the scrreenshot and then compares it to another thing?
it('toMatchSnapshot - html', () => {
cy.visit('/static/stub.html')
.then(() => {
cy.get('[data-test=test]').toMatchSnapshot();
});
});

I need to validate an scenario like this:
Site A is being migrated to Site B
Will this plugin work in a scenario where I take a text extract of a page on Site A and then compare it to that extract on page B?

Sorry to have opened an issue, but that's the only method I found to communicate with you...
@meinaart

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

No branches or pull requests

1 participant