Skip to content

Commit 9ae6390

Browse files
Reversed order of Eyes close and browser quit
1 parent 0cb06c9 commit 9ae6390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/applitools/example/AcmeBankTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ public void logIntoBankAccount() {
142142
@AfterEach
143143
public void cleanUpTest() {
144144

145-
// Quit the WebDriver instance.
146-
driver.quit();
147-
148145
// Close Eyes to tell the server it should display the results.
149146
eyes.closeAsync();
150147

148+
// Quit the WebDriver instance.
149+
driver.quit();
150+
151151
// Warning: `eyes.closeAsync()` will NOT wait for visual checkpoints to complete.
152152
// You will need to check the Eyes Test Manager for visual results per checkpoint.
153153
// Note that "unresolved" and "failed" visual checkpoints will not cause the JUnit test to fail.

0 commit comments

Comments
 (0)