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

Commit

Permalink
Fix Chrome 81 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjamesstone committed May 19, 2020
1 parent 10d479d commit a6e77e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions common/risk.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ module.exports = {
High: 'High risk'
}

const RiskDescriptions = {
'Very Low': 'Very low risk means that each year this area has a chance of flooding of less than 0.1%',
Low: 'Low risk means that each year this area has a chance of flooding of between 0.1% and 1%',
Medium: 'Medium risk means that each year this area has a chance of flooding of between 1% and 3.3%',
High: 'High risk means that each year this area has a chance of flooding of greater than 3.3%'
}
// const RiskDescriptions = {
// 'Very Low': 'Very low risk means that each year this area has a chance of flooding of less than 0.1%',
// Low: 'Low risk means that each year this area has a chance of flooding of between 0.1% and 1%',
// Medium: 'Medium risk means that each year this area has a chance of flooding of between 1% and 3.3%',
// High: 'High risk means that each year this area has a chance of flooding of greater than 3.3%'
// }

riskPage.assert.containsText('@surfaceWater', RiskTitles[info.surfaceWaterRisk])
riskPage.assert.containsText('@surfaceWaterDesc', RiskDescriptions[info.surfaceWaterRisk])
// riskPage.assert.containsText('@surfaceWaterDesc', RiskDescriptions[info.surfaceWaterRisk])
riskPage.assert.containsText('@riversSea', RiskTitles[info.riverAndSeaRisk])
riskPage.assert.containsText('@riversSeaDesc', RiskDescriptions[info.riverAndSeaRisk])
// riskPage.assert.containsText('@riversSeaDesc', RiskDescriptions[info.riverAndSeaRisk])
if (info.reservoirRisk) {
riskPage.assert.containsText('@reservoir', 'There is a risk of flooding from reservoirs in this area')
}
Expand Down

0 comments on commit a6e77e0

Please sign in to comment.