Exemple #1
0
 def test_Downvote(self, Setup):
     tp = ThreadsPage()
     threadlist = tp.GetThreads(Setup)
     for t in threadlist:
         vc = t.GetVoteCount(Setup)
         t.GetDownvoteButton(Setup).click()
         assert t.GetVoteCount(Setup) == str(vc - 1)
Exemple #2
0
 def test_ThreadsDisplayed(self, Setup):
     tp = ThreadsPage()
     threadlist = tp.GetThreads(Setup)
     assert len(threadlist) != 0