Skip to content

Commit 097ae9f

Browse files
committed
fix(dashboard): Adjust dashboard API response after server PR
Ref nextcloud/server#39937 Signed-off-by: Joas Schilling <[email protected]>
1 parent 24c1aa8 commit 097ae9f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/integration/features/bootstrap/FeatureContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,6 +1962,7 @@ public function userGetsDashboardWidgets($user, $apiVersion = 'v1', TableNode $f
19621962
$widget['widget_url'] = str_replace('{$BASE_URL}', $this->baseUrl, $widget['widget_url']);
19631963
$widget['buttons'] = str_replace('{$BASE_URL}', $this->baseUrl, $widget['buttons']);
19641964
$widget['buttons'] = json_decode($widget['buttons'], true);
1965+
$widget['item_api_versions'] = json_decode($widget['item_api_versions'], true);
19651966

19661967
Assert::assertEquals($widget, $data[$id], 'Mismatch of data for widget ' . $id);
19671968
Assert::assertStringEndsWith($widgetIconUrl, $dataIconUrl, 'Mismatch of icon URL for widget ' . $id);

tests/integration/features/integration/dashboard.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Feature: integration/dashboard
55

66
Scenario: User gets the available dashboard widgets
77
When user "participant1" sees the following entry when loading the list of dashboard widgets (v1)
8-
| id | title | icon_class | icon_url | widget_url | item_icons_round | order | buttons |
9-
| spreed | Talk mentions | dashboard-talk-icon | img/app-dark.svg | {$BASE_URL}index.php/apps/spreed/ | true | 10 | [{"type":"more","text":"More unread mentions","link":"{$BASE_URL}index.php/apps/spreed/"}] |
8+
| id | title | icon_class | icon_url | widget_url | item_icons_round | order | buttons | item_api_versions | reload_interval |
9+
| spreed | Talk mentions | dashboard-talk-icon | img/app-dark.svg | {$BASE_URL}index.php/apps/spreed/ | true | 10 | [{"type":"more","text":"More unread mentions","link":"{$BASE_URL}index.php/apps/spreed/"}] | [1] | 0 |
1010

1111
Scenario: User gets the dashboard widget content
1212
When user "participant1" sees the following entries for dashboard widgets "spreed" (v1)

0 commit comments

Comments
 (0)