def test_newcard(self): lp = LoginPage(self.driver) hp = Homepage(self.driver) np = NewCard(self.driver) vp = ViewRequest(self.driver) lp.setUsername(self.username) lp.setPassword(self.password) lp.clickLogin() hp.clickutil() hp.clickreqNewCard() np.createReqNewCard(expected_price=6.00) hp.clickviewRequest() # vp.approveReqNewCard(expected_status="Topup_Completed") vp.rejectReqNewCard(expected_status="Returned")
def test_voidnewcard(self): # This is scenario 1- to create request for new card in tandem with voiding request lp = LoginPage(self.driver) hp = Homepage(self.driver) np = NewCard(self.driver) vp = ViewRequest(self.driver) vvp = ViewVoidRequest(self.driver) lp.setUsername(self.username) lp.setPassword(self.password) lp.clickLogin() hp.clickutil() hp.clickreqNewCard() np.createReqNewCard(expected_price=6.00) hp.clickviewRequest() vp.approveReqNewCard(expected_status="Topup_Completed") vp.createVoidReq() hp.clickutil() hp.clickviewVoidRequest() vvp.approveVoidReq(expected_status1="void_topup_incomplete", expected_status2="Voided")