-
Notifications
You must be signed in to change notification settings - Fork 509
Implement dashboard IAPIWidget #7942
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ee2807b
Implement dashboard IAPIWidget
nickvergessen 6400a04
Implement IIconWidget
nickvergessen 7d839d8
Add options and buttons
nickvergessen f2482bc
Add integration tests for dashboard data
nickvergessen 73033ce
Execute the test on CI
nickvergessen 3b3c7de
Reuse existing sleep and abstract $base_url
nickvergessen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add integration tests for dashboard data
Signed-off-by: Joas Schilling <[email protected]>
- Loading branch information
commit f2482bcae4291ad03826f02455f80808cec0661a
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| Feature: integration/dashboard | ||
| Background: | ||
| Given user "participant1" exists | ||
| Given user "participant2" exists | ||
|
|
||
| Scenario: User gets the available dashboard widgets | ||
| When user "participant1" sees the following entry when loading the list of dashboard widgets (v1) | ||
| | id | title | icon_class | icon_url | widget_url | item_icons_round | order | buttons | | ||
| | spreed | Talk mentions | dashboard-talk-icon | img/app-dark.svg | http://localhost:8080/index.php/apps/spreed/ | true | 10 | [{"type":"more","text":"More unread mentions","link":"http://localhost:8080/index.php/apps/spreed/"}] | | ||
nickvergessen marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Scenario: User gets the dashboard widget content | ||
| When user "participant1" sees the following entries for dashboard widgets "spreed" (v1) | ||
| | title | subtitle | link | iconUrl | | ||
| Given user "participant2" creates room "one-to-one room" (v4) | ||
| | roomType | 1 | | ||
| | invite | participant1 | | ||
| And user "participant2" sends message "Hello" to room "one-to-one room" with 201 | ||
| And sleep 1 second | ||
| Given user "participant2" creates room "group room" (v4) | ||
| | roomType | 2 | | ||
| | roomName | group room | | ||
| And user "participant2" adds user "participant1" to room "group room" with 200 (v4) | ||
| And user "participant2" sends message "Hello @all" to room "group room" with 201 | ||
| And sleep 1 second | ||
| Given user "participant2" creates room "call room" (v4) | ||
| | roomType | 3 | | ||
| | roomName | call room | | ||
| And user "participant2" adds user "participant1" to room "call room" with 200 (v4) | ||
| And user "participant2" joins room "call room" with 200 (v4) | ||
| And user "participant2" joins call "call room" with 200 (v4) | ||
| When user "participant1" sees the following entries for dashboard widgets "spreed" (v1) | ||
nickvergessen marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | title | subtitle | link | iconUrl | sinceId | | ||
| | participant2-displayname | Hello | one-to-one room | http://localhost:8080/index.php/avatar/participant2/64 | | | ||
| | group room | Hello group room | group room | http://localhost:8080/core/img/actions/group.svg | | | ||
| | call room | @participant2-displayname started a call | call room | http://localhost:8080/core/img/actions/public.svg | | | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.