diff options
author | Zoltan Flamis <flamisz@gmail.com> | 2021-03-17 23:52:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 23:52:07 +0300 |
commit | dabc1caf64b16f40298bd6b7c43cf93cd0071b07 (patch) | |
tree | 9d1e845f697633a095f2aa76b86b2ac4c02a3424 /plugins/Feedback/tests/UI | |
parent | 7527bce11d1b3f9a5ace08eb26e5379f7702cf7c (diff) |
Ask users to refer us to other friends (#17234)
* skeleton for the refer banner
* refer banner wip
* share buttons
* show refer banner logic
* fix linkedin share, hide mastodon
* fix double call for remind me later and error on response
* add tests for refer banner
* fix travis tests
* fix travis tests
* add thanks feedback and language files
* hide fb share
* turn on fb share
* update refer banner copies
* add changes according to pr comments
* normalize lfs
Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
Diffstat (limited to 'plugins/Feedback/tests/UI')
-rw-r--r-- | plugins/Feedback/tests/UI/ReferBanner_spec.js | 30 | ||||
-rw-r--r-- | plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png | 3 |
2 files changed, 33 insertions, 0 deletions
diff --git a/plugins/Feedback/tests/UI/ReferBanner_spec.js b/plugins/Feedback/tests/UI/ReferBanner_spec.js new file mode 100644 index 0000000000..7b0364f111 --- /dev/null +++ b/plugins/Feedback/tests/UI/ReferBanner_spec.js @@ -0,0 +1,30 @@ +/*! + * Matomo - free/libre analytics platform + * + * UsersManager screenshot tests. + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +describe("ReferBannerTest", function () { + this.timeout(0); + this.fixture = "Piwik\\Plugins\\Feedback\\tests\\Fixtures\\ReferBannerFixture"; + + var url = "?module=CoreHome&action=index&idSite=1&period=day&date=2019-07-11&forceFeedbackTest=1"; + + before(async function() { + await page.webpage.setViewport({ + width: 1250, + height: 768 + }); + }); + + it('should display popup when next reminder date is in past', async function () { + await page.goto(url); + await page.waitForNetworkIdle(); + + var banner = await page.waitFor('.refer-banner', { visible: true }); + expect(await banner.screenshot()).to.matchImage('feedback_popup'); + }); +}); diff --git a/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png b/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png new file mode 100644 index 0000000000..b33ed5d4c8 --- /dev/null +++ b/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de4ce7f20f82c2c70a2ff0587ec3e14f5d93869e12f9cd4a6ac057d9747c0bc2 +size 14151 |