Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #198 from Financial-Times/rem-old-flag
Browse files Browse the repository at this point in the history
Remove old flag
  • Loading branch information
debugwand committed Oct 2, 2018
2 parents b83fdb4 + 7cde5f5 commit 8503677
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .pa11yci.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ const urls = [

const config = {
defaults: {
page: {
headers: {
'Cookie': 'next-flags=ads:off,cookieMessage:off; secure=true'
}
headers: {
'Cookie': 'next-flags=ads:off,cookieMessage:off; secure=true'
},
timeout: 25000,
rules: ['Principle1.Guideline1_3.1_3_1_AAA']
Expand All @@ -41,9 +39,7 @@ for (const viewport of viewports) {

config.urls.push({
url: url,
page: {
viewport: viewport
},
viewport: viewport,
screenCapture: `./pa11y_screenCapture/${path}.png`
});
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"date-fns": "^1.29.0"
},
"devDependencies": {
"@financial-times/n-gage": "^1.5.2",
"@financial-times/n-gage": "^2.0.0",
"@financial-times/n-internal-tool": "^1.2.3",
"bower": "^1.7.9",
"chai": "^3.2.0",
Expand All @@ -23,7 +23,7 @@
"mocha": "^5.2.0",
"node-sass": "^4.0.0",
"npm-prepublish": "^1.2.1",
"pa11y-ci": "^1.1.1"
"pa11y-ci": "^2.1.1"
},
"config": {},
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/presenters/teaser-presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,6 @@ class TeaserPresenter {

return Boolean(
!!this.data.enablePlayableVideo
&& this.data.flags
&& this.data.flags.insituVideoTeaser
&& (this.data.type && this.data.type.toLowerCase() === 'video')
&& ((isTopStory && !isBigStory) || (isHeavy && isLarge))
);
Expand Down

0 comments on commit 8503677

Please sign in to comment.