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

Add tests, switch tests to page objects #1 #1069

Merged
merged 3 commits into from
Feb 20, 2017

Conversation

begedin
Copy link
Contributor

@begedin begedin commented Feb 20, 2017

What's in this PR?

Just a PR that adds some test coverage and moves a couple of existing test suites towards using page objects.

Changes

  • Added a unit test for power-select/before-options. There is really no user interaction to be tested here, so a unit test is preferable.

@begedin begedin changed the title Add unit test for before-options Add tests, switch tests to page objects #1 Feb 20, 2017
@begedin begedin force-pushed the adding-tests-and-page-objects-1 branch from ef6ad96 to b3de293 Compare February 20, 2017 13:03
unit: true
}
);

Copy link
Contributor

Choose a reason for hiding this comment

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

What is a unit component test vs an integration? Not sure I've seen this distinction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

An integration test will partially boot the app (albeit not fully, like an acceptance test). It is also expected to render the component, which will have access to (and render) all subcomponents/services/etc.

The intention of an integration test it so check how the component is working with connected parts (while not fully starting the app) and how it interacts with the user/other layers.

The purpose of a component unit test would be to simply execute the component code to test, for example, some complex function within the component.

@joshsmith joshsmith force-pushed the adding-tests-and-page-objects-1 branch from 4e74671 to f270c64 Compare February 20, 2017 21:25
@joshsmith joshsmith merged commit cafec97 into develop Feb 20, 2017
@joshsmith joshsmith deleted the adding-tests-and-page-objects-1 branch February 20, 2017 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants