Skip to content

Commit 01fcb37

Browse files
Added helpful comments to test
1 parent 35e46f0 commit 01fcb37

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

acme_bank.robot

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
11
*** Settings ***
2+
# Use Selenium WebDriver and Applitools Eyes with the Ultrafast Grid.
23
Library SeleniumLibrary
34
Library EyesLibrary runner=web_ufg config=applitools.yaml
45

6+
# Declare setup and teardown routines.
57
Test Setup Setup
68
Test Teardown Teardown
79

10+
811
*** Keywords ***
12+
# For setup, load the demo site's login page and open Eyes to start visual testing.
913
Setup
1014
Open Browser https://demo.applitools.com Chrome
1115
Eyes Open
1216

17+
# For teardown, close Eyes and the browser.
1318
Teardown
1419
Eyes Close Async
1520
Close All Browsers
1621

22+
1723
*** Test Cases ***
24+
# This test covers login for the Applitools demo site, which is a dummy banking app.
25+
# The interactions use typical Selenium WebDriver calls,
26+
# but the verifications use one-line snapshot calls with Applitools Eyes.
27+
# If the page ever changes, then Applitools will detect the changes and highlight them in the dashboard.
28+
# Traditional assertions that scrape the page for text values are not needed here.
1829
Log into bank account
30+
31+
# Verify the full login page loaded correctly.
1932
Eyes Check Window Login Page Fully
2033

34+
# Perform login.
2135
Input Text id:username applibot
2236
Input Text id:password I<3VisualTests
2337
Click Element id:log-in
2438

25-
Eyes Check Window Main Page Fully Match Level LAYOUT
39+
# Verify the full main page loaded correctly.
40+
# This snapshot uses LAYOUT match level to avoid differences in closing time text.
41+
Eyes Check Window Main Page Fully Match Level LAYOUT

0 commit comments

Comments
 (0)