diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-08-18 15:31:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 15:31:05 +0300 |
commit | c9682a66981e4428485a2c9760f62567c2366f6d (patch) | |
tree | 271da60cbfb479be2625e2690c2c734af2aa7b18 /tests | |
parent | 17ec9004f99b6f7092740558bca71cca6c1ac23c (diff) |
fix embedding ui tests (#16298)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Fixtures/UITestFixture.php | 2 | ||||
-rw-r--r-- | tests/UI/expected-screenshots/enable_framed_pages_embed_whole_app.png | 4 | ||||
-rw-r--r-- | tests/UI/specs/UIIntegration_spec.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php index 567b106921..b75ebe079b 100644 --- a/tests/PHPUnit/Fixtures/UITestFixture.php +++ b/tests/PHPUnit/Fixtures/UITestFixture.php @@ -133,7 +133,7 @@ class UITestFixture extends SqlDump if (empty($user)) { $model->addUser(self::VIEW_USER_LOGIN, self::VIEW_USER_PASSWORD, 'hello2@example.org', Date::now()->getDatetime()); - $model->addUserAccess(self::VIEW_USER_LOGIN, 'view', array(1)); + $model->addUserAccess(self::VIEW_USER_LOGIN, 'view', array(1, 3)); } else { $model->updateUser(self::VIEW_USER_LOGIN, self::VIEW_USER_PASSWORD, 'hello2@example.org'); } diff --git a/tests/UI/expected-screenshots/enable_framed_pages_embed_whole_app.png b/tests/UI/expected-screenshots/enable_framed_pages_embed_whole_app.png index d1951b0663..15d25130cb 100644 --- a/tests/UI/expected-screenshots/enable_framed_pages_embed_whole_app.png +++ b/tests/UI/expected-screenshots/enable_framed_pages_embed_whole_app.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:17a7b0c35c4fdc1e018cdb4357f96eb3de42bbca896c6730016f3b05f252c9cb -size 149447 +oid sha256:346fa9d954f83d435fd89f8a4baf9ae13ce1cf0c40aae66eedc94421aa6d1e5a +size 232130 diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index 00f3f19e66..3b080c8583 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -1094,7 +1094,7 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? }); it('should allow embedding the entire app', async function () { - var url = "tests/resources/embed-file.html#" + encodeURIComponent(page.baseUrl + 'index.php?' + urlBase + '&token_auth=' + testEnvironment.tokenAuth); + var url = "tests/resources/embed-file.html#" + encodeURIComponent(page.baseUrl + 'index.php?' + urlBase + '&token_auth=a4ca4238a0b923820dcc509a6f75849f'); await page.goto(url); await page.waitForNetworkIdle(); |