Skip to content

Adds new functional test to login from offline mode#983

Merged
sssoleileraaa merged 1 commit intomasterfrom
login_from_offline
Mar 24, 2020
Merged

Adds new functional test to login from offline mode#983
sssoleileraaa merged 1 commit intomasterfrom
login_from_offline

Conversation

@kushaldas
Copy link
Copy Markdown
Contributor

Description

Fixes #980
It first logs in, and then logsout, and then log in again.

Test Plan

  • make test-functional works
  • manually verify the new test, login, logout and then login

Checklist

If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:

  • I have tested these changes in the appropriate Qubes environment
  • I do not have an appropriate Qubes OS workstation set up (the reviewer will need to test these changes)
  • These changes should not need testing in Qubes

If these changes add or remove files other than client code, packaging logic (e.g., the AppArmor profile) may need to be updated. Please check as applicable:

  • I have submitted a separate PR to the packaging repo
  • No update to the packaging logic (e.g., AppArmor profile) is required for these changes
  • I don't know and would appreciate guidance

@kushaldas kushaldas force-pushed the login_from_offline branch 2 times, most recently from 8640695 to ad64311 Compare March 24, 2020 13:44
@sssoleileraaa sssoleileraaa force-pushed the login_from_offline branch 2 times, most recently from b22c178 to c14e6be Compare March 24, 2020 19:13
sssoleileraaa
sssoleileraaa previously approved these changes Mar 24, 2020
Copy link
Copy Markdown
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

qtbot.mouseClick(gui.login_dialog.submit, Qt.LeftButton)

def wait_for_login():
assert gui.login_dialog is None
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ this test successfully checks that the login dialog goes away after a user is logged in

Fixes #980
It first logs in, and then logsout, and then log in again.
@sssoleileraaa sssoleileraaa merged commit de7a234 into master Mar 24, 2020
@sssoleileraaa sssoleileraaa deleted the login_from_offline branch March 24, 2020 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

functional test: login from offline mode

3 participants