Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created Feb 22, 2021
Embed
What would you like to do?
Visual testing to verify text displayed correctly
@Test
public void testAddLongTasks(){
List<String> tasks = List.of(
"buy a flight from UK to India. then buy a flight from India to US",
"take my imaginary kid to soccer practice. dont forget to buy snacks",
"check out cool new testing conference and submit abstract for a great talk!"
);
tasks.forEach(screen::addItem);
//Visual testing
Eyes eyes = new Eyes();
eyes.open(driver, "ToDo App", "long tasks");
eyes.check(Target.window().ignore(screen.getStatusBarLocator())); //status bar is dynamic. let's ignore
eyes.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment