Skip to content

Commit 030f636

Browse files
committed
Update an example test
1 parent 4ffd87f commit 030f636

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/swag_labs_suite.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def login_to_swag_labs(self, username="standard_user"):
2121
["problem_user"],
2222
])
2323
@pytest.mark.run(order=1)
24-
def test_swag_labs_basic_functional_flow(self, username):
24+
def test_swag_labs_basic_flow(self, username):
2525
""" This test checks functional flow of the Swag Labs store.
26-
This test is parameterized, and receives the user for login. """
26+
This test is parameterized on the login user. """
2727
self.login_to_swag_labs(username=username)
2828

2929
# Verify that the "Test.allTheThings() T-Shirt" appears on the page
@@ -56,15 +56,15 @@ def test_swag_labs_basic_functional_flow(self, username):
5656

5757
# Checkout - Add info
5858
self.click("link=CHECKOUT")
59-
self.assert_exact_text("Checkout: Your Information", "div.subheader")
59+
self.assert_text("Checkout: Your Information", "div.subheader")
6060
self.assert_element("a.cart_cancel_link")
6161
self.type("#first-name", "SeleniumBase")
6262
self.type("#last-name", "Rocks")
6363
self.type("#postal-code", "01720")
6464

6565
# Checkout - Overview
6666
self.click("input.btn_primary")
67-
self.assert_exact_text("Checkout: Overview", "div.subheader")
67+
self.assert_text("Checkout: Overview", "div.subheader")
6868
self.assert_element("link=CANCEL")
6969
self.assert_text(item_name, "div.inventory_item_name")
7070
self.assert_text(item_price, "div.inventory_item_price")
@@ -85,7 +85,7 @@ def test_swag_labs_basic_functional_flow(self, username):
8585
])
8686
@pytest.mark.run(order=2)
8787
def test_swag_labs_products_page_links(self, username):
88-
""" This test checks for 404 errors on the Swag Labs products page.
89-
This test is parameterized, and receives the user for login. """
88+
""" This test checks for 404s on the Swag Labs products page.
89+
This test is parameterized on the login user. """
9090
self.login_to_swag_labs(username=username)
9191
self.assert_no_404_errors()

0 commit comments

Comments
 (0)