-
-
Save angiejones/af9ad0771b31e3594f3e482c6f983679 to your computer and use it in GitHub Desktop.
Visual testing of completing task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testTaskComplete(){ | |
List<String> tasks = List.of("do taxes", "pick up dinner"); | |
tasks.forEach(screen::addItem); | |
screen.completeItem(tasks.get(0)); | |
//Visual testing | |
Eyes eyes = new Eyes(); | |
eyes.open(driver, "ToDo App", "complete task"); | |
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