File tree Expand file tree Collapse file tree
smokehouse/test-definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "specVersion" : " 1.0" ,
3+ "entries" : [
4+ {
5+ "identifier" : " invalid-urn-format" ,
6+ "displayName" : " Invalid Service" ,
7+ "type" : " application/json" ,
8+ "url" : " http://example.com/insecure-api"
9+ }
10+ ]
11+ }
Original file line number Diff line number Diff line change 1+ {
2+ "specVersion" : " 1.0" ,
3+ "entries" : [
4+ {
5+ "identifier" : " urn:air:google:search:web-search" ,
6+ "displayName" : " Web Search API" ,
7+ "type" : " application/ai-catalog+json" ,
8+ "url" : " https://example.com/api/search" ,
9+ "representativeQueries" : [
10+ " search the web" ,
11+ " find latest news"
12+ ]
13+ }
14+ ]
15+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <!--
3+ Copyright 2026 Google LLC
4+ SPDX-License-Identifier: Apache-2.0
5+ -->
6+ < html >
7+ < head >
8+ < title > ARD Tester</ title >
9+ < link rel ="ai-catalog " href ="/agentic/ai-catalog.json ">
10+ </ head >
11+ < body >
12+ < h1 > ARD Tester</ h1 >
13+ < p > This page is used to test ARD E2E.</ p >
14+ </ body >
15+ </ html >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <!--
3+ Copyright 2026 Google LLC
4+ SPDX-License-Identifier: Apache-2.0
5+ -->
6+ < html >
7+ < head >
8+ < title > ARD Invalid Tester</ title >
9+ < link rel ="ai-catalog " href ="/agentic/ai-catalog-invalid.json ">
10+ </ head >
11+ < body >
12+ < h1 > ARD Invalid Tester</ h1 >
13+ < p > This page is used to test ARD invalid schema E2E.</ p >
14+ </ body >
15+ </ html >
Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright 2026 Google LLC
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ /** @type {LH.Config } */
8+ const config = {
9+ extends : 'lighthouse:default' ,
10+ settings : {
11+ onlyAudits : [
12+ 'ard-schema' ,
13+ ] ,
14+ } ,
15+ } ;
16+
17+ /**
18+ * @type {Smokehouse.ExpectedRunnerResult }
19+ */
20+ const expectations = {
21+ lhr : {
22+ requestedUrl : 'http://localhost:10200/agentic/ard_tester_invalid.html' ,
23+ finalDisplayedUrl : 'http://localhost:10200/agentic/ard_tester_invalid.html' ,
24+ audits : {
25+ 'ard-schema' : {
26+ score : 0 ,
27+ scoreDisplayMode : 'binary' ,
28+ details : {
29+ type : 'table' ,
30+ items : [
31+ {
32+ element : 'Invalid Service' ,
33+ issue : / I d e n t i f i e r ' i n v a l i d - u r n - f o r m a t ' d o e s n o t m a t c h R F C 8 1 4 1 U R N p a t t e r n / ,
34+ severity : 'Error' ,
35+ } ,
36+ {
37+ element : 'Invalid Service' ,
38+ issue : / M e d i a t y p e ' a p p l i c a t i o n \/ j s o n ' i s n o t o n e o f s t a n d a r d d i s c o v e r y t y p e s / ,
39+ severity : 'Warning' ,
40+ } ,
41+ {
42+ element : 'Invalid Service' ,
43+ issue : / I n s e c u r e H T T P U R L f o u n d i n ' u r l ' / ,
44+ severity : 'Error' ,
45+ } ,
46+ {
47+ element : 'Invalid Service' ,
48+ issue : / M i s s i n g ' r e p r e s e n t a t i v e Q u e r i e s ' / ,
49+ severity : 'Warning' ,
50+ } ,
51+ ] ,
52+ } ,
53+ } ,
54+ } ,
55+ } ,
56+ } ;
57+
58+ /** @type {Smokehouse.TestDfn } */
59+ export default {
60+ id : 'ard-invalid' ,
61+ config,
62+ expectations,
63+ } ;
Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright 2026 Google LLC
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ /** @type {LH.Config } */
8+ const config = {
9+ extends : 'lighthouse:default' ,
10+ settings : {
11+ onlyAudits : [
12+ 'ard-schema' ,
13+ ] ,
14+ } ,
15+ } ;
16+
17+ /**
18+ * @type {Smokehouse.ExpectedRunnerResult }
19+ */
20+ const expectations = {
21+ lhr : {
22+ requestedUrl : 'http://localhost:10200/agentic/ard_tester.html' ,
23+ finalDisplayedUrl : 'http://localhost:10200/agentic/ard_tester.html' ,
24+ audits : {
25+ 'ard-schema' : {
26+ score : 1 ,
27+ scoreDisplayMode : 'binary' ,
28+ } ,
29+ } ,
30+ } ,
31+ } ;
32+
33+ /** @type {Smokehouse.TestDfn } */
34+ export default {
35+ id : 'ard' ,
36+ config,
37+ expectations,
38+ } ;
You can’t perform that action at this time.
0 commit comments