Skip to content

Commit 118dac5

Browse files
committed
Update MasterQA example tests
1 parent 509424b commit 118dac5

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

examples/master_qa/basic_masterqa_test.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
class MasterQATests(MasterQA):
55

66
def test_masterqa(self):
7-
self.open("http://xkcd.com/1700/")
7+
self.open("https://xkcd.com/1700/")
88
self.verify("Do you see a webcomic?")
9-
self.click_link_text('Store')
10-
self.click_link_text('all the things')
11-
self.verify("Do you see items for sale?")
12-
self.update_text("input.search-input", "Robots\n")
13-
self.verify("Do you see robots in the search results?")
9+
self.highlight_click('link=Blag')
10+
self.verify('Do you see a blog archive?')
11+
self.highlight_update_text("input#s", "Dragons\n")
12+
self.verify('Do you see "dragons" in the search results?')

examples/master_qa/masterqa_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
class MasterQATests(MasterQA):
55

66
def test_xkcd(self):
7-
self.open("http://xkcd.com/1512/")
7+
self.open("https://xkcd.com/1512/")
88
for i in range(4):
99
self.click('a[rel="next"]')
1010
for i in range(3):
1111
self.click('a[rel="prev"]')
1212
self.verify()
13-
self.open("http://xkcd.com/1520/")
13+
self.open("https://xkcd.com/1520/")
1414
for i in range(2):
1515
self.click('a[rel="next"]')
1616
self.verify("Can you find the moon?")
@@ -19,7 +19,7 @@ def test_xkcd(self):
1919
self.click_link_text('Blag')
2020
self.update_text("input#s", "Robots!\n")
2121
self.verify("Does it say 'Hooray robots' on the page?")
22-
self.open("http://xkcd.com/213/")
22+
self.open("https://xkcd.com/213/")
2323
for i in range(5):
2424
self.click('a[rel="prev"]')
2525
self.verify("Does the page say 'Abnormal Expressions'?")

0 commit comments

Comments
 (0)