Sobes.tech
Senior

""" self.fill_credentials(username, password) self.login_button.click() return Self.page def login_expecting_failure(self, username: str, password: str): """ Unsuccessful login. The actions are the same, but I return self, because in case of an error we stay on the same page. Two separate methods instead of one universal are made intentionally: so that in the test it is clear what result is expected. """ self.fill_credentials(username, password) self.login_button.click() return self

""" self.fill_credentials(username, password)… - sobes.tech