Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-07-26 18:07:26 +0300
committerGitHub <noreply@github.com>2022-07-26 18:07:26 +0300
commitd085420b8727d2350a1b68ddd74910efab8372f0 (patch)
treefe1c5a650a621950de58d6aab1d6bc208b47ba2f
parentc5bf1502705734bb2cfda10f366a83250e56d0bd (diff)
[Vue] remove use of angularjs from PagePerformance plugin (#19405)
* remove reference to enriched headline directive from javascript file * avoid random failure Co-authored-by: sgiehl <stefan@matomo.org>
-rw-r--r--plugins/PagePerformance/javascripts/PagePerformance.js2
-rw-r--r--tests/UI/specs/Theme_spec.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/PagePerformance/javascripts/PagePerformance.js b/plugins/PagePerformance/javascripts/PagePerformance.js
index 015671172a..e8112bb621 100644
--- a/plugins/PagePerformance/javascripts/PagePerformance.js
+++ b/plugins/PagePerformance/javascripts/PagePerformance.js
@@ -107,7 +107,7 @@ var PagePerformance = function() {
Piwik_Popover.setContent(html);
// remove title returned from the server
- var title = box.find('h2[piwik-enriched-headline]');
+ var title = box.find('.enrichedHeadline').closest('h2');
var defaultTitle = title.text();
if (title.length) {
diff --git a/tests/UI/specs/Theme_spec.js b/tests/UI/specs/Theme_spec.js
index 0e3c97a834..44b88089d5 100644
--- a/tests/UI/specs/Theme_spec.js
+++ b/tests/UI/specs/Theme_spec.js
@@ -48,7 +48,9 @@ describe("Theme", function () {
it("should use the current theme", async function () {
await page.goto("?module=CoreHome&action=index&idSite=1&period=year&date=2012-08-09");
+ await page.waitForSelector('.widget');
await page.waitForTimeout(500); // wait for angular finished rendering
+ await page.waitForNetworkIdle();
expect(await page.screenshot({ fullPage: true })).to.matchImage('home');
});