Skip to content

Commit 507d6e6

Browse files
committed
fix other tests
1 parent 4b31bc0 commit 507d6e6

File tree

20 files changed

+169
-11
lines changed

20 files changed

+169
-11
lines changed

plugins/AIAgents/tests/UI/AIAgents_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('AIAgents', function () {
1717
await page.waitForNetworkIdle();
1818

1919
const widgets = await page.$$('.matomo-widget');
20-
expect(widgets.length).to.equal(2);
20+
expect(widgets.length).to.equal(3);
2121
});
2222

2323
it('should show the AI assistants report menu items', async function () {

plugins/Diagnostics/tests/Integration/Commands/AnalyzeArchiveTableTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public function testCommandOutputIsAsExpected()
4242
+-------------------------------------------+------------+---------------+-------------+---------+-----------+----------------+-------------+-------------+
4343
| Group | # Archives | # Invalidated | # Temporary | # Error | # Segment | # Numeric Rows | # Blob Rows | # Blob Data |
4444
+-------------------------------------------+------------+---------------+-------------+---------+-----------+----------------+-------------+-------------+
45-
| day[2010-03-06 - 2010-03-06] idSite = 1 | 9 | 0 | 0 | 0 | 8 | 115 | 77 | %d |
46-
| week[2010-03-01 - 2010-03-07] idSite = 1 | 9 | 0 | 0 | 0 | 8 | 157 | 99 | %d |
47-
| month[2010-03-01 - 2010-03-31] idSite = 1 | 9 | 0 | 0 | 0 | 8 | 157 | 99 | %d |
45+
| day[2010-03-06 - 2010-03-06] idSite = 1 | 9 | 0 | 0 | 0 | 8 | 115 | 79 | %d |
46+
| week[2010-03-01 - 2010-03-07] idSite = 1 | 9 | 0 | 0 | 0 | 8 | 157 | 101 | %d |
47+
| month[2010-03-01 - 2010-03-31] idSite = 1 | 9 | 0 | 0 | 0 | 8 | 157 | 101 | %d |
4848
+-------------------------------------------+------------+---------------+-------------+---------+-----------+----------------+-------------+-------------+
4949
5050
Total # Archives: 27

plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_schedrep_html_tables_and_graph__ScheduledReports.generateReport_week.original.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@ <h2 style="color:#212121;font-family:-apple-system, BlinkMacSystemFont, &#039;Se
427427
<a href="#Goals_getDaysToConversion_idGoal--1" style="text-decoration:none; color: #0d0d0d;">
428428
title match, triggered ONCE - Days to Conversion
429429
</a>
430+
</li>
431+
<li style="font-size:15px;line-height:24px;">
432+
<a href="#BotTracking_getAIAssistantRequests" style="text-decoration:none; color: #0d0d0d;">
433+
AI Assistants - Bots
434+
</a>
430435
</li>
431436
<li style="font-size:15px;line-height:24px;">
432437
<a href="#AIAgents_get" style="text-decoration:none; color: #0d0d0d;">
@@ -7806,6 +7811,12 @@ <h2 id="Goals_getDaysToConversion_idGoal--1" style=" color:#0d0d0d;font-family:-
78067811
Back to top &#8593;
78077812
</a></p>
78087813

7814+
<h2 id="BotTracking_getAIAssistantRequests" style=" color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; font-size: 24pt; font-weight:normal; margin:45px 0 30px 0;">
7815+
AI Assistants - Bots
7816+
</h2>
7817+
7818+
There is no data for this report.
7819+
78097820
<h2 id="AIAgents_get" style=" color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; font-size: 24pt; font-weight:normal; margin:45px 0 30px 0;">
78107821
AI Agent Visits
78117822
</h2>

plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_schedrep_html_tables_only__ScheduledReports.generateReport_week.original.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@ <h2 style="color:#212121;font-family:-apple-system, BlinkMacSystemFont, &#039;Se
427427
<a href="#Goals_getDaysToConversion_idGoal--1" style="text-decoration:none; color: #0d0d0d;">
428428
title match, triggered ONCE - Days to Conversion
429429
</a>
430+
</li>
431+
<li style="font-size:15px;line-height:24px;">
432+
<a href="#BotTracking_getAIAssistantRequests" style="text-decoration:none; color: #0d0d0d;">
433+
AI Assistants - Bots
434+
</a>
430435
</li>
431436
<li style="font-size:15px;line-height:24px;">
432437
<a href="#AIAgents_get" style="text-decoration:none; color: #0d0d0d;">
@@ -7407,6 +7412,12 @@ <h2 id="Goals_getDaysToConversion_idGoal--1" style=" color:#0d0d0d;font-family:-
74077412
Back to top &#8593;
74087413
</a></p>
74097414

7415+
<h2 id="BotTracking_getAIAssistantRequests" style=" color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; font-size: 24pt; font-weight:normal; margin:45px 0 30px 0;">
7416+
AI Assistants - Bots
7417+
</h2>
7418+
7419+
There is no data for this report.
7420+
74107421
<h2 id="AIAgents_get" style=" color:#0d0d0d;font-family:-apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, Oxygen-Sans, Cantarell, &#039;Helvetica Neue&#039;, sans-serif; font-size: 24pt; font-weight:normal; margin:45px 0 30px 0;">
74117422
AI Agent Visits
74127423
</h2>

plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_schedrep_in_csv__ScheduledReports.generateReport_week.original.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ label,nb_conversions
548548
121-364 days,0
549549
365+ days,0
550550

551+
AI Assistants - Bots
552+
No data available
553+
551554
AI Agent Visits
552555
nb_uniq_visitors_ai_agent,nb_users_ai_agent,nb_visits_ai_agent,nb_actions_ai_agent,max_actions_ai_agent,bounce_rate_ai_agent,nb_actions_per_visit_ai_agent,avg_time_on_site_ai_agent,nb_uniq_visitors_human,nb_users_human,nb_visits_human,nb_actions_human,max_actions_human,bounce_rate_human,nb_actions_per_visit_human,avg_time_on_site_human
553556
0,0,0,0,0,0%,0,00:00:00,1,0,5,16,6,20%,3.2,00:22:50

plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_schedrep_in_tsv__ScheduledReports.generateReport_week.original.tsv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ label nb_conversions
548548
121-364 days 0
549549
365+ days 0
550550

551+
AI Assistants - Bots
552+
No data available
553+
551554
AI Agent Visits
552555
nb_uniq_visitors_ai_agent nb_users_ai_agent nb_visits_ai_agent nb_actions_ai_agent max_actions_ai_agent bounce_rate_ai_agent nb_actions_per_visit_ai_agent avg_time_on_site_ai_agent nb_uniq_visitors_human nb_users_human nb_visits_human nb_actions_human max_actions_human bounce_rate_human nb_actions_per_visit_human avg_time_on_site_human
553556
0 0 0 0 0 0% 0 00:00:00 1 0 5 16 6 20% 3.2 00:22:50

tests/PHPUnit/Framework/TestRequest/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Collection
5353
'Referrers.getKeywordNotDefinedString',
5454
'CorePluginsAdmin.getSystemSettings',
5555
'API.getPagesComparisonsDisabledFor',
56+
'BotTracking',
5657
);
5758

5859
/**

tests/PHPUnit/Integration/Archive/PartialArchiveTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testRangeArchivingOnlyArchivesSingleRecordWhenQueryingNumerics()
6363
// check archive is all plugins archive as expected
6464
[$idArchives, $archiveInfo] = $this->getArchiveInfo('2020_04', Range::PERIOD_ID, false);
6565
$this->assertEquals([
66-
['idsite' => 1, 'date1' => '2020-04-06', 'date2' => '2020-04-09', 'period' => Range::PERIOD_ID, 'name' => 'done', 'value' => ArchiveWriter::DONE_OK, 'blob_count' => 60],
66+
['idsite' => 1, 'date1' => '2020-04-06', 'date2' => '2020-04-09', 'period' => Range::PERIOD_ID, 'name' => 'done', 'value' => ArchiveWriter::DONE_OK, 'blob_count' => 62],
6767
], $archiveInfo);
6868

6969
$maxIdArchive = $this->getMaxIdArchive('2020_04');
@@ -124,7 +124,7 @@ public function testRangeArchivingOnlyArchivesSingleRecordWhenQueryingBlobs()
124124
// check archive is all plugins archive as expected
125125
[$idArchives, $archiveInfo] = $this->getArchiveInfo('2020_04', Range::PERIOD_ID, false);
126126
$this->assertEquals([
127-
['idsite' => 1, 'date1' => '2020-04-06', 'date2' => '2020-04-09', 'period' => Range::PERIOD_ID, 'name' => 'done', 'value' => ArchiveWriter::DONE_OK, 'blob_count' => 60],
127+
['idsite' => 1, 'date1' => '2020-04-06', 'date2' => '2020-04-09', 'period' => Range::PERIOD_ID, 'name' => 'done', 'value' => ArchiveWriter::DONE_OK, 'blob_count' => 62],
128128
], $archiveInfo);
129129

130130
$maxIdArchive = $this->getMaxIdArchive('2020_04');

tests/PHPUnit/Integration/WidgetsListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testGet()
5252
'Referrers_Referrers' => 11,
5353
'About Matomo' => 11,
5454
'Marketplace_Marketplace' => 3,
55-
'AIAgents_AIAssistants' => 2,
55+
'AIAgents_AIAssistants' => 3,
5656

5757
// widgets provided by Professional Services plugin for plugin promos
5858
'ProfessionalServices_PromoAbTesting' => 1,

0 commit comments

Comments
 (0)