Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test spaceless ids (refactor the schema validation tests) #471

Merged
merged 4 commits into from Apr 25, 2019

Conversation

jgreben
Copy link
Contributor

@jgreben jgreben commented Apr 25, 2019

This PR was originally about testing the "spaceless" IDs in the JSON schema (See LD4P/sinopia#201) but morphed into refatoring the schema validation tests to happen at the component/unit-test level in stead of integration tests (which were incomplete and error-prone). There is still one integration test for the malformed JSON test which was dificult to test at the unit-test level. A beneficial side-effect is that this refactoring increases overall code-coverage.

@jgreben jgreben changed the title Test spaceless ids Test spaceless ids (refator the schema validation tests) Apr 25, 2019
@jgreben jgreben added this to Ready (prioritized) in Sinopia Work-Cycle One Apr 25, 2019
@jgreben jgreben moved this from Ready (prioritized) to Needs Review in Sinopia Work-Cycle One Apr 25, 2019
Copy link
Contributor

@ndushay ndushay left a comment

Choose a reason for hiding this comment

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

Always delighted to stop commenting out tests ...

Couple of tiny quibbles, but approving as is.

__tests__/components/RootComponent.test.js Show resolved Hide resolved
await page.waitForSelector('button#ImportProfile')
await page.click('button#ImportProfile')
await pupExpect(page).toMatch('select a file to upload:')
it('Displays and error message', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

typo ? "an" for "and"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doh...

@ndushay ndushay changed the title Test spaceless ids (refator the schema validation tests) Test spaceless ids (refactor the schema validation tests) Apr 25, 2019
@coveralls
Copy link

coveralls commented Apr 25, 2019

Coverage Status

Coverage increased (+3.4%) to 78.561% when pulling ffa1550 on test-spaceless-ids into 5e7c8dc on master.

@ndushay ndushay merged commit 00e1c6d into master Apr 25, 2019
Sinopia Work-Cycle One automation moved this from Needs Review to Done Apr 25, 2019
@ndushay ndushay deleted the test-spaceless-ids branch April 25, 2019 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants