-
Notifications
You must be signed in to change notification settings - Fork 46
test(gui): fix and enable settings test scenarios #911
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
e45d654
23f44af
287a554
f512770
67889e4
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 | ||
|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ Feature: Visually check all tabs | |||
| I want to visually check all tabs in client | ||||
| So that I can perform all the actions related to client | ||||
|
|
||||
|
|
||||
| @smoke | ||||
| Scenario: Tabs in toolbar looks correct | ||||
|
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. The tests fails. Scenario: Verify various setting options in Settings tab # features/tabs-settings/test.feature:17
Given user "Alice" has been created in the server with default attributes # steps/server_context.py:8 0.072s
And user "Alice" has set up a client with default settings # steps/account_context.py:55
Traceback (most recent call last):
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/behave/model.py", line 1991, in run
match.run(runner.context)
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/behave/matchers.py", line 105, in run
self.func(context, *args, **kwargs)
File "steps/account_context.py", line 62, in step
enter_password.login_after_setup(username, password)
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/pageObjects/EnterPassword.py", line 39, in login_after_setup
self.oidc_relogin(username, password)
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/pageObjects/EnterPassword.py", line 33, in oidc_relogin
authorize_via_webui(username, password)
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/helpers/WebUIHelper.py", line 12, in authorize_via_webui
page.goto(url)
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/playwright/sync_api/_generated.py", line 9054, in goto
self._sync(
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync
return task.result()
^^^^^^^^^^^^^
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 552, in goto
return await self._main_frame.goto(**locals_to_params(locals()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/playwright/_impl/_frame.py", line 153, in goto
await self._channel.send(
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 69, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/prashant/Desktop/projects/oc-desktop/desktop/test/gui/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 559, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: Page.goto: Protocol error (Page.navigate): Cannot navigate to invalid URL
Call log:
- navigating to "Cannot navigate to invalid URL", waiting until "load"
Contributor
Author
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. browser login failed.
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. I am also facing same issue
Contributor
Author
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. hmm, that's weird. Could you check your chromium version?
Contributor
Author
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. or check with headed mode to see what happens:
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.
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. This scenario is fine. Scenario: Tabs in toolbar looks correctBut another one is failing: Scenario: Verify various setting options in Settings tab # features/tabs-settings/tabsSettings.feature:17
Given user "Alice" has been created in the server with default attributes # steps/server_context.py:8 0.070s
And user "Alice" has set up a client with default settings # steps/account_context.py:55
And user "Alice" has set up a client with default settings # steps/account_context.py:55 2.801s
When the user opens the settings tab # steps/sync_context.py:86 0.217s
ASSERT FAILED: Settings tab is not active
Contributor
Author
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. might be similar issue: #910 (comment)
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. Yes, that's correct in this test case as well.
Contributor
Author
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. let's see into this issue separately. |
||||
| Given user "Alice" has been created in the server with default attributes | ||||
| And user "Alice" has set up a client with default settings | ||||
|
|
@@ -13,19 +13,18 @@ Feature: Visually check all tabs | |||
| | Settings | | ||||
| | Quit | | ||||
|
|
||||
|
|
||||
| @smoke | ||||
| Scenario: Verify various setting options in Settings tab | ||||
| Given user "Alice" has been created in the server with default attributes | ||||
| And user "Alice" has set up a client with default settings | ||||
| When the user clicks on the settings tab | ||||
| When the user opens the settings tab | ||||
| Then the settings tab should have the following options in the general section: | ||||
| | Start on Login | | ||||
| And the settings tab should have the following options in the advanced section: | ||||
| | Sync hidden files | | ||||
| | Edit ignored files | | ||||
| | Log settings | | ||||
| And the settings tab should have the following options in the network section: | ||||
| | Proxy Settings | | ||||
| | Download Bandwidth | | ||||
| | Upload Bandwidth | | ||||
| When the user opens the about dialog | ||||
|
|
||||

Uh oh!
There was an error while loading. Please reload this page.