Remove all traces of previous tests from the DOM: Unmount the root node and remove the container from the DOM
Remove all traces of previous tests from the DOM: Unmount the root node and remove the container from the DOM
Container element that will hold the root node as a child.
Container element that will hold the root node as a child. Container is mounted as a child of <body> element
If condition is false, fail the test with a given message This method exists for compatibility with different test frameworks.
If condition is false, fail the test with a given message This method exists for compatibility with different test frameworks.
Fail the test with a given message This method exists for compatibility with different test frameworks.
Fail the test with a given message This method exists for compatibility with different test frameworks.
Check that a given node matches the provided description.
Check that a given node matches the provided description. Call doFail with an error message if the test fails.
Check that the root node matches the provided description.
Check that the root node matches the provided description. Call doFail with an error message if the test fails.
Inject the root node into the DOM – alternative argument order for convenience
Inject the root node into the DOM – alternative argument order for convenience
Inject the root node into the DOM – with default clue
Note: defaultMountedElementClue should not be made a default value on the above mount
method
because that prevents users from defining their own mount
methods that accept default arguments
("multiple overloaded alternatives of method mount define default arguments") error
Inject the root node into the DOM – with default clue
Note: defaultMountedElementClue should not be made a default value on the above mount
method
because that prevents users from defining their own mount
methods that accept default arguments
("multiple overloaded alternatives of method mount define default arguments") error
Inject the root node into the DOM
Inject the root node into the DOM
Prefix to add to error messages – useful to differentiate between different mount() calls within one test
Prefix to add to error messages – useful to differentiate between different mount() calls within one test
Clear the DOM and create a new container.
Clear the DOM and create a new container. This should be called before each test.
Root node is the node that we test in expectNode
.
Root node is the node that we test in expectNode
. It is the only child of the containerNode
element
Remove root node from the DOM
Remove root node from the DOM
Note: we use withFixture instead of beforeEach/afterEach because ScalaTest obscures error messages reported from the latter.
Note: we use withFixture instead of beforeEach/afterEach because ScalaTest obscures error messages reported from the latter.