Skip to content

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

Merged
joshsmith merged 3 commits into
developfrom
adding-tests-and-page-objects-1
Feb 20, 2017
Merged

Add tests, switch tests to page objects #1#1069
joshsmith merged 3 commits into
developfrom
adding-tests-and-page-objects-1

Conversation

@begedin

@begedin begedin commented Feb 20, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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.

2 participants