@@ -9,7 +9,6 @@ def login_to_swag_labs(self, username="standard_user"):
99 url = "https://www.saucedemo.com"
1010 self .open (url )
1111 self .wait_for_element ("div.login_logo" )
12- self .wait_for_element ("div.bot_column" )
1312 if username not in self .get_text ("#login_credentials" ):
1413 self .fail ("Invalid user for login: %s" % username )
1514 self .type ("#user-name" , username )
@@ -41,18 +40,18 @@ def test_swag_labs_user_flows(self, username):
4140 self .fail ('Sort Failed! Expecting "%s" on top!' % item_name )
4241
4342 # Add the "Test.allTheThings() T-Shirt" to the cart
44- self .assert_exact_text ("ADD TO CART " , "button.btn_inventory" )
43+ self .assert_exact_text ("Add to cart " , "button.btn_inventory" )
4544 item_price = self .get_text ("div.inventory_item_price" )
4645 self .click ("button.btn_inventory" )
47- self .assert_exact_text ("REMOVE " , "button.btn_inventory" )
46+ self .assert_exact_text ("Remove " , "button.btn_inventory" )
4847 self .assert_exact_text ("1" , "span.shopping_cart_badge" )
4948
5049 # Verify your cart
5150 self .click ("#shopping_cart_container a" )
5251 self .assert_element ('span:contains("Your Cart")' )
5352 self .assert_text (item_name , "div.inventory_item_name" )
5453 self .assert_exact_text ("1" , "div.cart_quantity" )
55- self .assert_exact_text ("REMOVE " , "button.cart_button" )
54+ self .assert_exact_text ("Remove " , "button.cart_button" )
5655 self .assert_element ("button#continue-shopping" )
5756
5857 # Checkout - Add info
@@ -73,7 +72,7 @@ def test_swag_labs_user_flows(self, username):
7372
7473 # Finish Checkout and verify that the cart is now empty
7574 self .click ("button#finish" )
76- self .assert_exact_text ("THANK YOU FOR YOUR ORDER " , "h2" )
75+ self .assert_exact_text ("Thank you for your order! " , "h2" )
7776 self .assert_element ("img.pony_express" )
7877 self .click ("#shopping_cart_container a" )
7978 self .assert_element_absent ("div.inventory_item_name" )
0 commit comments