You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to ask you a few questions. I want to write some tests which is going to compare screenshots. My main purpose is comparing screenshots of a page to be sure nothing changed after developments.
I'm planning to use cypress-image-snapshot plugin but I also open for other suggestions if you have. While using cypress-image-snapshot plugin I've faced a few issues. Let me explain them.
Can we use cypress-image-snapshot plugin with latest Cypress versions? I'm asking this because couldn't run matchImageSnapshot test function while using Cypress 12.11.0 version. If we can use latest versions is there anything I should configure and how can I do?
I could run matchImageSnapshot test function when I was using Cypress 4.12.1 version but I cannot simulate the press of the Tab key. I have tried cy.focused().type('{tab}') , cy.trigger('keydown', { keyCode: 9, which: 9 }) but it didn't work. How can I simulate the press of the Tab key while using matchImageSnapshot() ?
My last question is I want to take the screenshot in the same moment hover over an element. How can I create this scenario?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I need to ask you a few questions. I want to write some tests which is going to compare screenshots. My main purpose is comparing screenshots of a page to be sure nothing changed after developments.
I'm planning to use cypress-image-snapshot plugin but I also open for other suggestions if you have. While using cypress-image-snapshot plugin I've faced a few issues. Let me explain them.
Can we use cypress-image-snapshot plugin with latest Cypress versions? I'm asking this because couldn't run matchImageSnapshot test function while using Cypress 12.11.0 version. If we can use latest versions is there anything I should configure and how can I do?
I could run matchImageSnapshot test function when I was using Cypress 4.12.1 version but I cannot simulate the press of the Tab key. I have tried cy.focused().type('{tab}') , cy.trigger('keydown', { keyCode: 9, which: 9 }) but it didn't work. How can I simulate the press of the Tab key while using matchImageSnapshot() ?
My last question is I want to take the screenshot in the same moment hover over an element. How can I create this scenario?
Beta Was this translation helpful? Give feedback.
All reactions