diff options
author | Kate Butler <kate@innocraft.com> | 2019-08-05 06:20:40 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-08-05 06:20:40 +0300 |
commit | 1aefe69b03edc69efc3d27e77b4cafaf0e9e7ca1 (patch) | |
tree | 3dcf5726f53ccb2b5105a65c499b736a88357f51 /tests | |
parent | 2aa7c822b17e62dfde9fd2cd4c608e5a6e71d439 (diff) |
Quick links widget (#14689)
* Quick links widget
* Add new widget to widget metadata test reference file
* Update test
* Move quicklinks widget and add icons for each item
* Update reference screenshots
Diffstat (limited to 'tests')
5 files changed, 25 insertions, 5 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php index 5d13e025da..06b4a5650b 100644 --- a/tests/PHPUnit/Fixtures/UITestFixture.php +++ b/tests/PHPUnit/Fixtures/UITestFixture.php @@ -317,6 +317,7 @@ class UITestFixture extends SqlDump if ($widget['uniqueId'] == 'widgetSEOgetRank' || $widget['uniqueId'] == 'widgetLivegetVisitorProfilePopup' || $widget['uniqueId'] == 'widgetActionsgetPageTitles' + || $widget['uniqueId'] == 'widgetCoreHomequickLinks' || strpos($widget['uniqueId'], 'widgetExample') === 0 ) { continue; diff --git a/tests/PHPUnit/Integration/WidgetsListTest.php b/tests/PHPUnit/Integration/WidgetsListTest.php index 21e43d06ba..5e86d1c12e 100644 --- a/tests/PHPUnit/Integration/WidgetsListTest.php +++ b/tests/PHPUnit/Integration/WidgetsListTest.php @@ -49,7 +49,7 @@ class WidgetsListTest extends IntegrationTestCase 'Insights_WidgetCategory' => 2, 'ExampleUI_UiFramework' => 8, 'Referrers_Referrers' => 10, - 'About Matomo' => 12, + 'About Matomo' => 13, ); // number of main categories $this->assertEquals(count($numberOfWidgets), count($widgetsPerCategory)); diff --git a/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getWidgetMetadata.xml b/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getWidgetMetadata.xml index 7b0a41ce18..9e007550dd 100644 --- a/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getWidgetMetadata.xml +++ b/tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getWidgetMetadata.xml @@ -3374,6 +3374,25 @@ <isWide>0</isWide> </row> <row> + <name>Quick Links</name> + <category> + <id>About Matomo</id> + <name>About Matomo</name> + <order>99</order> + <icon /> + </category> + <subcategory /> + <module>CoreHome</module> + <action>quickLinks</action> + <order>16</order> + <parameters> + <module>CoreHome</module> + <action>quickLinks</action> + </parameters> + <uniqueId>widgetCoreHomequickLinks</uniqueId> + <isWide>0</isWide> + </row> + <row> <name>Example Widget Name</name> <category> <id>About Matomo</id> diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_admin_home.png b/tests/UI/expected-screenshots/UIIntegrationTest_admin_home.png index e0f7b68ea0..c42fddec26 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_admin_home.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_admin_home.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:28b69f19ad8d27b0c6dfbfac21a4d4b3bcc4e8bc2e7662fc690e132ba0847a7d -size 140940 +oid sha256:e8f8ad570e5617fbab6e2d1056109782a9e31a13b585c4542b92d415f1209129 +size 150860 diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_api_error.png b/tests/UI/expected-screenshots/UIIntegrationTest_api_error.png index e0f7b68ea0..c42fddec26 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_api_error.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_api_error.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:28b69f19ad8d27b0c6dfbfac21a4d4b3bcc4e8bc2e7662fc690e132ba0847a7d -size 140940 +oid sha256:e8f8ad570e5617fbab6e2d1056109782a9e31a13b585c4542b92d415f1209129 +size 150860 |