Skip to content

Commit

Permalink
tests(smoke): check for passing robots-txt (#13007)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored Sep 3, 2021
1 parent abca096 commit d6225d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 2 additions & 0 deletions lighthouse-cli/test/fixtures/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ const blockAllExceptInlineScriptCsp = headersParam([[

/**
* @type {Smokehouse.ExpectedRunnerResult}
* Expectations of CSP results with a defalt Lighthouse run.
* Expectations of CSP results with a default Lighthouse run.
*/
const allowAll = {
artifacts: {
RobotsTxt: {
status: 404,
content: null,
status: 200,
},
InspectorIssues: {contentSecurityPolicy: []},
SourceMaps: [{
Expand Down Expand Up @@ -94,12 +93,10 @@ const blockAll = {
artifacts: {
_minChromiumMilestone: 92,
RobotsTxt: {
status: 404,
content: null,
status: 200,
},
InspectorIssues: {
contentSecurityPolicy: [
],
contentSecurityPolicy: [],
},
SourceMaps: [{
sourceMapUrl: 'http://localhost:10200/source-map/script.js.map',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ const passing = {
score: 1,
},
'robots-txt': {
score: null,
scoreDisplayMode: 'notApplicable',
score: 1,
},
},
},
Expand Down

0 comments on commit d6225d3

Please sign in to comment.