Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cfme/tests/automate/test_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def test_existing_domain_child_override(appliance, custom_domain, import_data):
)
datastore.import_domain_from(import_data.from_domain, import_data.to_domain)
view = appliance.browser.create_view(FileImportSelectorView)
view.flash.assert_message("Error: Selected domain is locked")
view.flash.assert_message("Error: Cannot import into a locked domain.")
custom_domain.unlock()
datastore.import_domain_from(import_data.from_domain, import_data.to_domain)
view.flash.assert_no_error()
Expand Down
2 changes: 1 addition & 1 deletion cfme/tests/automate/test_git_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,6 @@ def test_git_refresh_with_renamed_yaml(appliance):
import_type="git", url=GIT_REPO_URL
)
with pytest.raises(AssertionError, match=(
"Error: import failed: Selected branch or tag does not contain a valid domain"
"Error: import failed: Import of domain failed"
)):
repo.import_domain_from(branch="origin/broken-yaml")
11 changes: 7 additions & 4 deletions cfme/tests/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ def test_login(context, method, appliance):
@pytest.mark.tier(2)
@pytest.mark.sauce
@pytest.mark.parametrize('context', [ViaUI])
# BZ 1632718 is only relevant for Chrome browser
@pytest.mark.meta(blockers=[BZ(1632718)])
@pytest.mark.meta(automates=[1632718])
def test_bad_password(context, request, appliance):
""" Tests logging in with a bad password.
""" Tests logging in with a bad password and 1632718 is only relevant for Chrome browser

Bugzilla:
1632718
Polarion:
assignee: dgaikwad
casecomponent: WebUI
Expand All @@ -67,7 +68,9 @@ def test_bad_password(context, request, appliance):
user = appliance.collections.users.instantiate(credential=cred, name='Administrator')

with appliance.context.use(context):
with pytest.raises(Exception, match="Login failed: Unauthorized"):
with pytest.raises(
Exception, match="Sorry, the username or password you entered is incorrect."
):
appliance.server.login(user)
view = appliance.browser.create_view(LoginPage)
assert view.password.read() == '' and view.username.read() == ''
Expand Down