Skip to content

Commit f3671c2

Browse files
Added extra comments about "Eyes open"
1 parent 99df4fe commit f3671c2

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

tests/acme-bank.spec.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,24 @@ test.describe('ACME Bank', () => {
5959
// Each test should open its own Eyes for its own snapshots.
6060
// It is a recommended practice to set all four inputs below:
6161
await eyes.open(
62-
page, // The Playwright page object to "watch"
63-
'ACME Bank', // The name of the app under test
64-
test.info().title, // The name of the test case
65-
{ width: 1024, height: 768 }); // The viewport size for the local browser
62+
63+
// The Playwright page object to "watch"
64+
page,
65+
66+
// The name of the application under test.
67+
// All tests for the same app should share the same app name.
68+
// Set this name wisely: Applitools features rely on a shared app name across tests.
69+
'ACME Bank',
70+
71+
// The name of the test case for the given application.
72+
// Additional unique characteristics of the test may also be specified as part of the test name,
73+
// such as localization information ("Home Page - EN") or different user permissions ("Login by admin").
74+
test.info().title,
75+
76+
// The viewport size for the local browser.
77+
// Eyes will resize the web browser to match the requested viewport size.
78+
// This parameter is optional but encouraged in order to produce consistent results.
79+
{ width: 1024, height: 768 });
6680
});
6781

6882
// This test covers login for the Applitools demo site, which is a dummy banking app.

0 commit comments

Comments
 (0)