-
Notifications
You must be signed in to change notification settings - Fork 44
test(GUI): enable account test #920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,7 +32,7 @@ class AccountConnectionWizard: | |||||||||||||||||||
| selector="QApplication.Settings.centralwidget.dialogStack.SetupWizardWidget.contentWidget.AccountConfiguredWizardPage.advancedConfigGroupBox.advancedConfigGroupBoxContentWidget.localDirectoryGroupBox.chooseLocalDirectoryButton", | ||||||||||||||||||||
| ) | ||||||||||||||||||||
| CHOOSE_FOLDER_BUTTON = SimpleNamespace(by=By.NAME, selector="Choose") | ||||||||||||||||||||
| OAUTH_CREDENTIAL_PAGE = SimpleNamespace(by=None, selector=None) | ||||||||||||||||||||
| OAUTH_CREDENTIAL_PAGE = SimpleNamespace(by=By.XPATH, selector="//label[@name='Log in with your web browser']") | ||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
| COPY_URL_TO_CLIPBOARD_BUTTON = SimpleNamespace( | ||||||||||||||||||||
| by=By.NAME, | ||||||||||||||||||||
| selector="Copy URL", | ||||||||||||||||||||
|
|
@@ -194,7 +194,10 @@ def is_new_connection_window_visible(): | |||||||||||||||||||
| def is_credential_window_visible(): | ||||||||||||||||||||
| visible = False | ||||||||||||||||||||
| try: | ||||||||||||||||||||
| squish.waitForObject(AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE) | ||||||||||||||||||||
| app().find_element( | ||||||||||||||||||||
| AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by, | ||||||||||||||||||||
| AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector | ||||||||||||||||||||
|
Comment on lines
+197
to
+199
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
| ) | ||||||||||||||||||||
| visible = True | ||||||||||||||||||||
|
Comment on lines
+197
to
201
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
| except: | ||||||||||||||||||||
| pass | ||||||||||||||||||||
|
|
||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,9 +179,9 @@ def step(context): | |
| AccountConnectionWizard.accept_certificate() | ||
|
|
||
|
|
||
| @When('the user adds the server "|any|"') | ||
| def step(context, server): | ||
| server_url = substitute_inline_codes(server) | ||
| @When('the user adds the server "{server_url}"') | ||
| def step(context, server_url): | ||
| server_url = substitute_inline_codes(server_url) | ||
| AccountConnectionWizard.add_server(server_url) | ||
|
|
||
|
|
||
|
|
@@ -193,12 +193,7 @@ def step(context): | |
|
|
||
| @Then('credentials wizard should be visible') | ||
| def step(context): | ||
| test.compare( | ||
| AccountConnectionWizard.is_credential_window_visible(), | ||
| True, | ||
| 'Credentials wizard is visible', | ||
| ) | ||
|
|
||
| AccountConnectionWizard.is_credential_window_visible() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check true with ensure |
||
|
|
||
| @When('the user selects download everything option in advanced section') | ||
| def step(context): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not a smoke test. Now, the workflow should be:
@smoke@skip