Skip to content

Commit

Permalink
Add dusk assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Apr 14, 2018
1 parent a114b7f commit a15935d
Showing 1 changed file with 56 additions and 2 deletions.
58 changes: 56 additions & 2 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ Dusk provides a variety of assertions that you may make against your application
[assertPathIsNot](#assert-path-is-not)
[assertRouteIs](#assert-route-is)
[assertQueryStringHas](#assert-query-string-has)
[assertQueryStringHas](#assert-query-string-has)
[assertQueryStringMissing](#assert-query-string-missing)
[assertFragmentIs](#assert-fragment-is)
[assertFragmentBeginsWith](#assert-fragment-begins-with)
Expand Down Expand Up @@ -606,10 +605,17 @@ Dusk provides a variety of assertions that you may make against your application
[assertSelectHasOption](#assert-select-has-option)
[assertValue](#assert-value)
[assertVisible](#assert-visible)
[assertPresent](#assert-present)
[assertMissing](#assert-missing)
[assertDialogOpened](#assert-dialog-opened)
[assertEnabled](#assert-enabled)
[assertDisabled](#assert-disabled)
[assertFocused](#assert-focused)
[assertNotFocused](#assert-not-focused)
[assertVue](#assert-vue)
[assertVueIsNot](#assert-vue-is-not)
[assertVueContains](#assert-vue-contains)
[assertVueDoesNotContain](#assert-vue-does-not-contain)
</div>

<a name="assert-title"></a>
Expand Down Expand Up @@ -668,7 +674,6 @@ Assert the given query string parameter is present:

$browser->assertQueryStringHas($name);

<a name="assert-query-string-has"></a>
#### assertQueryStringHas

Assert the given query string parameter is present and has a given value:
Expand Down Expand Up @@ -878,6 +883,13 @@ Assert the element matching the given selector is visible:

$browser->assertVisible($selector);

<a name="assert-present"></a>
#### assertPresent

Assert the element matching the given selector is present:

$browser->assertPresent($selector);

<a name="assert-missing"></a>
#### assertMissing

Expand All @@ -892,6 +904,34 @@ Assert that a JavaScript dialog with given message has been opened:

$browser->assertDialogOpened($message);

<a name="assert-enabled"></a>
#### assertEnabled

Assert that the given field is enabled:

$browser->assertEnabled($field);

<a name="assert-disabled"></a>
#### assertDisabled

Assert that the given field is disabled:

$browser->assertDisabled($field);

<a name="assert-focused"></a>
#### assertFocused

Assert that the given field is focused:

$browser->assertFocused($field);

<a name="assert-not-focused"></a>
#### assertNotFocused

Assert that the given field is not focused:

$browser->assertNotFocused($field);

<a name="assert-vue"></a>
#### assertVue

Expand All @@ -906,6 +946,20 @@ Assert that a given Vue component data property does not match the given value:

$browser->assertVueIsNot($property, $value, $componentSelector = null);

<a name="assert-vue-contains"></a>
#### assertVueContains

Assert that a given Vue component data property is an array and contains the given value:

$browser->assertVueContains($property, $value, $componentSelector = null);

<a name="assert-vue-does-not-contain"></a>
#### assertVueDoesNotContain

Assert that a given Vue component data property is an array and does not contain the given value:

$browser->assertVueDoesNotContain($property, $value, $componentSelector = null);

<a name="pages"></a>
## Pages

Expand Down

0 comments on commit a15935d

Please sign in to comment.