diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-11-30 06:41:48 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-11-30 06:41:48 +0300 |
commit | af3a79c055bfe2c5778b5827ba3d165674315f4b (patch) | |
tree | a0e4432d5be6318209f968536dcaf1fa2494a86b /tests | |
parent | e80aeb9ccecc2f175176d8920d241a93de168920 (diff) |
Show shortcut help screen when pressing `?` (#12283)
* Adds help screen for shortcuts
* Dynamically create shortcut summary by using new js method piwikHelper.registerShortcut
* Update CHANGELOG.md
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UI/expected-screenshots/UIIntegrationTest_shortcuts.png | 3 | ||||
-rw-r--r-- | tests/UI/specs/UIIntegration_spec.js | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_shortcuts.png b/tests/UI/expected-screenshots/UIIntegrationTest_shortcuts.png new file mode 100644 index 0000000000..a643f22f54 --- /dev/null +++ b/tests/UI/expected-screenshots/UIIntegrationTest_shortcuts.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1315ff37e2adff460f08b1598fe66b71f5cd0c3aa968648c39e1daa07635bba3 +size 27528 diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index aa32cb4109..aff7121a34 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -81,6 +81,14 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? }, done); }); + // shortcuts help + it("should show shortcut help", function (done) { + expect.screenshot("shortcuts").to.be.captureSelector('.modal.open', function (page) { + page.load("?" + urlBase + "#?" + generalParams + "&category=Dashboard_Dashboard&subcategory=1"); + page.sendKeys('body', '?', 100); + }, done); + }); + // visitors pages it('should load visitors > overview page correctly', function (done) { expect.screenshot("visitors_overview").to.be.captureSelector('.pageWrap', function (page) { |