Skip to content

test(GUI): enable account test#920

Closed
Asmitapaudel wants to merge 1 commit into
opencloud-eu:mainfrom
Asmitapaudel:test
Closed

test(GUI): enable account test#920
Asmitapaudel wants to merge 1 commit into
opencloud-eu:mainfrom
Asmitapaudel:test

Conversation

@Asmitapaudel
Copy link
Copy Markdown

Part of: #861

This PR enables the following account test:

Scenario: Adding account with self signed certificate for the first time

Signed-off-by: Asmitapaudel <asmeetapdl@gmail.com>
)
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']")
Copy link
Copy Markdown
Contributor

@saw-jan saw-jan May 28, 2026

Choose a reason for hiding this comment

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

Suggested change
OAUTH_CREDENTIAL_PAGE = SimpleNamespace(by=By.XPATH, selector="//label[@name='Log in with your web browser']")
LOGIN_DIALOG = SimpleNamespace(by=By.XPATH, selector="//label[@name='Log in with your web browser']")

Comment on lines +197 to +199
app().find_element(
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by,
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector
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.

Suggested change
app().find_element(
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by,
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector
app().find_element(
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by,
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector

Comment on lines +197 to 201
app().find_element(
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by,
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector
)
visible = True
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.

Suggested change
app().find_element(
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by,
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector
)
visible = True
visible= app().find_element(
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.by,
AccountConnectionWizard.OAUTH_CREDENTIAL_PAGE.selector
).is_displayed()

'Credentials wizard is visible',
)

AccountConnectionWizard.is_credential_window_visible()
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.

check true with ensure

And "Alice" account should be added


@smoke
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 is not a smoke test. Now, the workflow should be:

  • skip all the tests that are not tagged @smoke
  • fix and enable skipped tests
  • in CI, run tests that are not marked @skip
Suggested change
@smoke

@Asmitapaudel Asmitapaudel deleted the test branch May 28, 2026 10:59
@Asmitapaudel
Copy link
Copy Markdown
Author

PR with clean branch name and clean changes is here: #921. So closing this one.

@saw-jan
Copy link
Copy Markdown
Contributor

saw-jan commented May 28, 2026

PR with clean branch name and clean changes is here: #921. So closing this one.

hmm, that was not necessary though. Anyways 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants