Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Feature/12938 investigate how to write integration tests #358

Merged

Conversation

KeithLyonMastek
Copy link
Contributor

Remove duplicate tests for header & footer in PB, replace with cheerio snapshot

@KeithLyonMastek KeithLyonMastek requested a review from a team as a code owner March 8, 2021 10:10
@bjss-chris
Copy link
Contributor

@KeithLyonMastek, looks like there are some conflicts that need resolving.

Story: AB#12937
Task: AB#12938
@NickNewlands NickNewlands force-pushed the feature/12938-investigate-how-to-write-integration-tests branch from 122be8b to 5831a25 Compare March 23, 2021 12:10
…/public-browse into feature/12938-investigate-how-to-write-integration-tests
Copy link
Contributor

@nehajain008 nehajain008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good to me.

@NickNewlands NickNewlands force-pushed the feature/12938-investigate-how-to-write-integration-tests branch from 91f76ac to e9b2157 Compare March 29, 2021 16:24
Copy link
Contributor

@bjss-chris bjss-chris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of small things.

"showLegalPanel": true
"showLegalPanel": true,
"solutionsVacination": "/solutions/vaccinations",
"solutionsCovid": "/solutions/covid19"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just needs a trailing newline.

package.json Outdated
Comment on lines 52 to 58
"nock": "^13.0.11",
"nunjucks": "^3.2.3",
"nunjucks-date-filter": "^0.1.1",
"path": "^0.12.7",
"serve-favicon": "^2.5.0",
"testcafe": "^1.11.0",
"testcafe-reporter-nunit": "^0.1.2",
Copy link
Contributor

@bjss-chris bjss-chris Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't nock and the TestCafe libraries be dev dependencies?

Can you also double-check that the dependencies are up-to-date? (Just thinking of minor updates – might be best to do updates like the component library update in a separate PR.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved them into devDependencies. I ran 'npm update' but does not seem to have done much so perhaps we are up to date. Is there a flag you typically run it with that I am missing?

Copy link
Contributor

@bjss-chris bjss-chris Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a bug in the latest version of npm, which means that it doesn't update package.json, only package-lock.json. There's an open issue (708) for it in the npm repo.

When there's only a few I tend to just do npm install x@latest for the relevant dependencies – obviously a pain if there are a lot though!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm, that is a bad bug, running 'npm outdated' does not seem to return a list either.

…/public-browse into feature/12938-investigate-how-to-write-integration-tests
@NickNewlands NickNewlands force-pushed the feature/12938-investigate-how-to-write-integration-tests branch from e9b2157 to 33b39a5 Compare March 30, 2021 08:53
@NickNewlands NickNewlands merged commit c34ec13 into master Mar 30, 2021
@NickNewlands NickNewlands deleted the feature/12938-investigate-how-to-write-integration-tests branch March 30, 2021 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants