Skip to content

Commit 8c1acd1

Browse files
authored
Merge pull request #203 from Financial-Times/remove-get-pixels-dep
Delete visibleContent check to remove get-pixels dependency to resolve security advisory
2 parents cd4d74d + 2a0c6a0 commit 8c1acd1

File tree

5 files changed

+4
-10417
lines changed

5 files changed

+4
-10417
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ urls: {
107107
content: (content) => {
108108
return content.includes('some-text');
109109
},
110-
visibleContent: {
111-
contentSelector: '.headline, .image, .standfirst'
112-
threshold: 30 // % of viewport that should be visible content
113-
},
114110
performance: true, //checks firstPaint/firstContentfulPaint against baseline. default = 2000, or can specify.
115111
description: 'Each test may have an optional description. It will display when the test result is reported',
116112
}

lib/checks/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ module.exports = {
88
pageErrors: require('./page-errors'),
99
performance: require('./performance'),
1010
responseHeaders: require('./response-headers'),
11-
screenshot: require('./screenshot'),
12-
visibleContent: require('./visible-content')
11+
screenshot: require('./screenshot')
1312
};

lib/checks/visible-content.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)