File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,12 @@ pytest test_coffee_cart.py --demo
7171
7272``` python
7373from seleniumbase import BaseCase
74+ BaseCase.main(__name__ , __file__ )
7475
7576class CoffeeCartTest (BaseCase ):
7677 def test_coffee_cart (self ):
7778 self .open(" https://seleniumbase.io/coffee/" )
79+ self .assert_title(" Coffee Cart" )
7880 self .click(' div[data-sb="Cappuccino"]' )
7981 self .click(' div[data-sb="Flat-White"]' )
8082 self .click(' div[data-sb="Cafe-Latte"]' )
@@ -84,7 +86,7 @@ class CoffeeCartTest(BaseCase):
8486 self .type(" input#name" , " Selenium Coffee" )
8587 self .type(" input#email" , " test@test.test" )
8688 self .click(" button#submit-payment" )
87- self .assert_text(" Thanks for your purchase." , " #app" )
89+ self .assert_text(" Thanks for your purchase." , " #app .success " )
8890```
8991
9092--------
You can’t perform that action at this time.
0 commit comments