Skip to content

Commit 7f8eacb

Browse files
Added more comments about "Eyes open"
1 parent 482535e commit 7f8eacb

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,24 @@ public static void main(String [] args) {
101101
// Open Eyes to start visual testing.
102102
// It is a recommended practice to set all four inputs:
103103
eyes.open(
104-
driver, // WebDriver object to "watch"
105-
"ACME Bank Web App", // The name of the app under test
106-
"Log into bank account", // The name of the test case
107-
new RectangleSize(1200, 600)); // The viewport size for the local browser
104+
105+
// WebDriver object to "watch".
106+
driver,
107+
108+
// The name of the application under test.
109+
// All tests for the same app should share the same app name.
110+
// Set this name wisely: Applitools features rely on a shared app name across tests.
111+
"ACME Bank Web App",
112+
113+
// The name of the test case for the given application.
114+
// Additional unique characteristics of the test may also be specified as part of the test name,
115+
// such as localization information ("Home Page - EN") or different user permissions ("Login by admin").
116+
"Log into bank account",
117+
118+
// The viewport size for the local browser.
119+
// Eyes will resize the web browser to match the requested viewport size.
120+
// This parameter is optional but encouraged in order to produce consistent results.
121+
new RectangleSize(1200, 600));
108122

109123
// Load the login page.
110124
driver.get("https://demo.applitools.com");

0 commit comments

Comments
 (0)