def test_login_negative(self): App.is_displayed(self, NewsScreen.accountTab) App.is_displayed(self, NewsScreen.hamburgerMenu) App.assert_text(self, NewsScreen.newsHeader, 'News') App.click(self, NewsScreen.hamburgerMenu) App.assert_text(self, NewsScreen.menuHeader, 'Menu') # login as real user LoginScreen.login_user(self, 'invalid password') App.assert_text(self, LoginScreen.invalidMsg, 'Incorrect username or password.')
def test_login_positive(self): App.is_displayed(self, NewsScreen.accountTab) App.is_displayed(self, NewsScreen.hamburgerMenu) App.assert_text(self, NewsScreen.newsHeader, 'News') App.click(self, NewsScreen.hamburgerMenu) App.assert_text(self, NewsScreen.menuHeader, 'Menu') # login as real user LoginScreen.login_user(self, 'valid password') App.assert_text(self, NewsScreen.newsHeader, 'News') App.click(self, NewsScreen.accountTab) App.is_displayed(self, DashboardScreen.profileImage) App.assert_text(self, DashboardScreen.profileName, 'hack') App.assert_text(self, DashboardScreen.dashboardHeader, 'My Dashboard')
def test_home_2(self): App.is_displayed(self, HomeScreen.homeMenu, True) App.is_displayed(self, HomeScreen.loginMenu, True)
def test_home_1(self): App.is_displayed(self, HomeScreen.homeMenu, True) App.is_displayed(self, HomeScreen.loginMenu, True) App.is_displayed(self, HomeScreen.formsMenu, True) App.is_displayed(self, HomeScreen.swipeMenu, True)