diff options
author | Peter Zhang <peter@innocraft.com> | 2021-11-13 02:49:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 02:49:08 +0300 |
commit | bf341b7c0ba46691bf3e475ebaa58391363cd7ec (patch) | |
tree | 232d4a0ec7aa3b8c801592872eb2d2523dc66f0e /tests | |
parent | 9c58f4e71db9133b2c83d51cf700e818ec5ff7e4 (diff) |
add feedback question, remove other related. (#18262)
* remove feedback links
remove feedback links
* update screen shot
update screen shot
* add feedback question
add feedback question
* update close to icon
update close to icon
* built vue files
* remove in line css
remove in line css, change to less file
* move translation key to plugin
move translation key to plugin
* remove feedback popup
remove feedback popup
* update remove some test and feedback related
update remove some test and feedback related
* add draft tests
add draft tests
* update feedback add php and UI tests
update feedback add php and UI tests
* update test screen shots
update test screen shots
* Update demo.twig
add heart to demo page
* add feedback back in extend the modal
add feedback back in extend the modal
* update coreHome
update coreHome
* update screen shots
update screen shots
* Update FeedbackQuestion_spec.js
update js tests
* update test
update test
* built vue files
* update screenshot and js tests
update screenshot and js tests
* Update FeedbackQuestion_spec.js
test success
* update screenshot
update screenshot
* update tests
update tests
* fix test error
fix test error
* Removing the refer us popup
* Readding accidentally removed language files
* update test
* update test
* remove refer us
* update feedback umd js
update feedback umd js
* merge Andy branch
merge Andy branch and update screen shots
* revert language changes
revert language changes
* revert language changes
revert language changes
* revert language file
revert language file
* revert unrelated lang change
revert unrelated lang change
* revert lang change
revert lang change
* revert lang change
revert lang change
* Delete ControllerTest.php
remove controller test not in used
* Update core/Piwik.php
Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>
* Update plugins/Morpheus/javascripts/piwikHelper.js
Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>
* update a big that cancel and reopen it again
update a bug that cancel and reopen it again
* update compare error
update compare error
* Update plugins/Feedback/FeedbackReminder.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* update feedback show logic
update feedback show logic
* Update FeedbackQuestion_spec.js
update tests
* Update Feedback.php
remove comments
* Update .gitignore
* update vue build file
update vue build file
* built vue files
* update vue build file
update vue build file
* add close button
add close button
* add close button
add close button
* update screenshot
update screenshot
* remove umd
remove umd
* git add corehome
git add corehome
* revert all the umd file
revert all the umd file
* built vue files
* built vue files
* Update plugins/Feedback/lang/en.json
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* update per review
update per review
* built vue files
* set auto focus on modal open
set auto focus on modal open
* built vue files
* Update FeedbackQuestion.vue
add please write in english
* built vue files
* remove please write in English
remove please write in English
* built vue files
* update tests and question tests
update tests and question tests
* set cookie in the test
set cookie in the test
* Update page-renderer.js
add setCookie to tests
* update test only load 1
update test only load 1
* built vue files
* Update FeedbackQuestion_feedback_popup.png
update screen shot
* Update piwikHelper.js
update button css
* update screen shot
update screen shot
* Update plugins/Feedback/Feedback.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update plugins/Feedback/vue/src/FeedbackQuestion/FeedbackQuestion.vue
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update plugins/Feedback/API.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update plugins/Feedback/API.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update core/Plugin/API.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* update cookie and tests
update cookie and tests
* built vue files
* test setcookie in tests
test setcookie in tests
* update tests
update tests
* update tests
update tests
* Update FeedbackQuestion_spec.js
update cookie test
* extend setCookie in test
extend setCookie in test
* update elints format
update elints format
* built vue files
* test set cookie
test set cookie
* built vue files
* Update FeedbackQuestion_spec.js
set cookie after goto URL
* Update FeedbackQuestion_spec.js
int to string
* update set cookie
update set cookie
* update test URL
update test URL
Co-authored-by: peterhashair <peterhashair@users.noreply.github.com>
Co-authored-by: Andrew Davis <andrew.affinity@gmail.com>
Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'tests')
6 files changed, 23 insertions, 7 deletions
diff --git a/tests/PHPUnit/Integration/FrontControllerTest.php b/tests/PHPUnit/Integration/FrontControllerTest.php index 27b254e451..1f0d9599c2 100644 --- a/tests/PHPUnit/Integration/FrontControllerTest.php +++ b/tests/PHPUnit/Integration/FrontControllerTest.php @@ -48,7 +48,7 @@ FORMAT; $this->assertEquals('error', $response['result']); $expectedFormat = <<<FORMAT -test message on {includePath}/tests/resources/trigger-fatal-exception.php(23) #0 [internal function]: {closure}('CoreHome', 'index', Array) #1 {includePath}/core/EventDispatcher.php(141): call_user_func_array(Object(Closure), Array) #2 {includePath}/core/Piwik.php(826): Piwik\EventDispatcher->postEvent('Request.dispatc...', Array, false, Array) #3 {includePath}/core/FrontController.php(599): Piwik\Piwik::postEvent('Request.dispatc...', Array) #4 {includePath}/core/FrontController.php(168): Piwik\FrontController->doDispatch('CoreHome', 'index', Array) #5 {includePath}/tests/resources/trigger-fatal-exception.php(31): Piwik\FrontController->dispatch('CoreHome', 'index') #6 {main} +test message on {includePath}/tests/resources/trigger-fatal-exception.php(23) #0 [internal function]: {closure}('CoreHome', 'index', Array) #1 {includePath}/core/EventDispatcher.php(141): call_user_func_array(Object(Closure), Array) #2 {includePath}/core/Piwik.php(845): Piwik\EventDispatcher->postEvent('Request.dispatc...', Array, false, Array) #3 {includePath}/core/FrontController.php(599): Piwik\Piwik::postEvent('Request.dispatc...', Array) #4 {includePath}/core/FrontController.php(168): Piwik\FrontController->doDispatch('CoreHome', 'index', Array) #5 {includePath}/tests/resources/trigger-fatal-exception.php(31): Piwik\FrontController->dispatch('CoreHome', 'index') #6 {main} FORMAT; $this->assertStringMatchesFormat($expectedFormat, $response['message']); } diff --git a/tests/PHPUnit/Unit/DateTest.php b/tests/PHPUnit/Unit/DateTest.php index bf6da99863..2c62bf2c23 100644 --- a/tests/PHPUnit/Unit/DateTest.php +++ b/tests/PHPUnit/Unit/DateTest.php @@ -294,6 +294,20 @@ class DateTest extends \PHPUnit\Framework\TestCase $this->assertEquals($dayExpected, $date->getDatetime()); } + public function testAddMonth() + { + $dayStart = '2010-03-28 00:00:00'; + $dayExpected = '2010-04-28 00:00:00'; + $date = Date::factory($dayStart)->addMonth(1); + $this->assertEquals($dayExpected, $date->getDatetime()); + + + $dayStart = '2010-03-28 00:00:00'; + $dayExpected = '2010-09-28 00:00:00'; + $date = Date::factory($dayStart)->addMonth(6); + $this->assertEquals($dayExpected, $date->getDatetime()); + } + public function testAddHourLongHours() { $dateTime = '2010-01-03 11:22:33'; diff --git a/tests/UI/expected-screenshots/Theme_demo.png b/tests/UI/expected-screenshots/Theme_demo.png index 86a331085e..04d0a716e8 100644 --- a/tests/UI/expected-screenshots/Theme_demo.png +++ b/tests/UI/expected-screenshots/Theme_demo.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c2c27ee30f16401212cf87a332ac6a4dd6ec7f49168dd730508cfd7f7a82c3aa -size 1670763 +oid sha256:27a560f7cc0d0ae8b486cd2174173aeba9c9831b0ff9b2fa92eecf519b98ac0f +size 1672370 diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_actions_content_piece_name.png b/tests/UI/expected-screenshots/UIIntegrationTest_actions_content_piece_name.png index 8673cc604a..d543fbadee 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_actions_content_piece_name.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_actions_content_piece_name.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:64268852e9addee0cb9e27ad395ae468bfb8dc3bdb5d9086562e026ec2a509ee -size 50253 +oid sha256:488c328f5290ba3fbb70eda53ec1a6d7c46fa77756bea3a6d2a5c2ab9a58a212 +size 50285 diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_api_listing.png b/tests/UI/expected-screenshots/UIIntegrationTest_api_listing.png index 7a057fa3e7..c7710803ce 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_api_listing.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_api_listing.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d92406e3cf6894abda91dcf4a0e71c645a8a48c5451e649df4ccc982e8dbacd4 -size 4995440 +oid sha256:d7c7bb539b9ba3943503a7bb48416e2ea1b088e2e74960a0acbdfd3479b3ef5e +size 5010398 diff --git a/tests/lib/screenshot-testing/support/page-renderer.js b/tests/lib/screenshot-testing/support/page-renderer.js index 8db5108bce..1c4abe09a0 100644 --- a/tests/lib/screenshot-testing/support/page-renderer.js +++ b/tests/lib/screenshot-testing/support/page-renderer.js @@ -51,6 +51,7 @@ const PAGE_METHODS_TO_PROXY = [ 'setContent', 'setExtraHTTPHeaders', 'setUserAgent', + 'setCookie', 'tap', 'target', 'title', @@ -516,4 +517,5 @@ PageRenderer.prototype.getWholeCurrentUrl = function () { }; + exports.PageRenderer = PageRenderer; |