Skip to content

Commit

Permalink
Remove news and communications page
Browse files Browse the repository at this point in the history
We will test it in a separate branch:
#1212
  • Loading branch information
hannalaakso committed Feb 21, 2019
1 parent bf71734 commit 18dc5f1
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 2,100 deletions.
1 change: 0 additions & 1 deletion app/full-page-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = (app) => {
require('./views/full-page-examples/have-you-changed-your-name')(app)
require('./views/full-page-examples/feedback')(app)
require('./views/full-page-examples/how-do-you-want-to-sign-in')(app)
require('./views/full-page-examples/news-and-communications')(app)
require('./views/full-page-examples/passport-details')(app)
require('./views/full-page-examples/update-your-account-details')(app)
require('./views/full-page-examples/upload-your-photo')(app)
Expand Down
28 changes: 0 additions & 28 deletions app/full-page-examples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const expectedPages = [
'feedback',
'have-you-changed-your-name',
'how-do-you-want-to-sign-in',
'news-and-communications',
'passport-details',
'service-manual-topic',
'start-page',
Expand Down Expand Up @@ -336,33 +335,6 @@ describe(`http://localhost:${PORT}/full-page-examples/`, () => {
})
})

describe('news-and-communications', () => {
it('should show most wanted results by default', (done) => {
requestPath.get('news-and-communications', (err, res) => {
let $ = cheerio.load(res.body)
// Check the results are correct
expect($.html()).toContain('128,124 results')
done(err)
})
})
it('should show sorted results when selected', (done) => {
requestPath.get('news-and-communications?order=updated-newest', (err, res) => {
let $ = cheerio.load(res.body)
// Check the results are correct
expect($.html()).toContain('128,123 results')
done(err)
})
})
it('should show brexit results when checked', (done) => {
requestPath.get('news-and-communications?order=most-viewed&brexit=true', (err, res) => {
let $ = cheerio.load(res.body)
// Check the results are correct
expect($.html()).toContain('586 results')
done(err)
})
})
})

describe('what-was-the-last-country-you-visited', () => {
it('should not show errors if submit with no input', (done) => {
requestPath.get('what-was-the-last-country-you-visited', (err, res) => {
Expand Down
Loading

0 comments on commit 18dc5f1

Please sign in to comment.