When I view my step in Applitools, it didn’t capture the view where I scrolled into. It just captured the top of the page. How can I retain the scrolled view until it’s captured in applitools? I’ve tried this code I’ve seen from the net, but nothing happened, not sure if I just didn’t place it correctly in my code:
eyes.check("test", Target.Region(By.id("scrollable_element")).fully());
My step definition is something like this:
beforeEach(() => {
cy.eyesOpen({
appName: "Test App",
testName: Cypress.currentTest.title,
});
});
Then("user can view a {string}", (chart) => {
cy.visit("/");
cy.loginUser();
cy.navigateToChartsPage();
cy.get(".charts-bg").eq(1).scrollIntoView();
cy.eyesCheckWindow({
tag: chart + " chart",
});
});
afterEach(() => {
cy.eyesClose();
});