1212 - [ Browser Macros] ( #browser-macros )
1313 - [ Authentication] ( #authentication )
1414 - [ Database Migrations] ( #migrations )
15+ - [ Cookies] ( #cookies )
1516- [ Interacting With Elements] ( #interacting-with-elements )
1617 - [ Dusk Selectors] ( #dusk-selectors )
1718 - [ Clicking Links] ( #clicking-links )
2526 - [ Waiting For Elements] ( #waiting-for-elements )
2627 - [ Scrolling An Element Into View] ( #scrolling-an-element-into-view )
2728 - [ Making Vue Assertions] ( #making-vue-assertions )
28- - [ Cookies] ( #cookies )
2929- [ Available Assertions] ( #available-assertions )
3030- [ Pages] ( #pages )
3131 - [ Generating Pages] ( #generating-pages )
@@ -330,6 +330,25 @@ When your test requires migrations, like the authentication example above, you s
330330 use DatabaseMigrations;
331331 }
332332
333+ <a name =" cookies " ></a >
334+ ### Cookies
335+
336+ You may use the ` cookie ` method to get or set an encrypted cookie's value:
337+
338+ $browser->cookie('name');
339+
340+ $browser->cookie('name', 'Taylor');
341+
342+ You may use the ` plainCookie ` method to get or set an unencrypted cookie's value:
343+
344+ $browser->plainCookie('name');
345+
346+ $browser->plainCookie('name', 'Taylor');
347+
348+ You may use the ` deleteCookie ` method to delete the given cookie:
349+
350+ $browser->deleteCookie('name');
351+
333352<a name =" interacting-with-elements " ></a >
334353## Interacting With Elements
335354
@@ -728,25 +747,6 @@ You may assert on the state of the Vue component like so:
728747 });
729748 }
730749
731- <a name =" cookies " ></a >
732- ### Cookies
733-
734- You may use the ` cookie ` method to get or set an encrypted cookie's value:
735-
736- $browser->cookie('name');
737-
738- You may use the ` plainCookie ` method to get or set a plain cookie's value:
739-
740- $browser->plainCookie('name');
741-
742- You may use the ` addCookie ` method to create a new cookie using the given value:
743-
744- $browser->addCookie('name', 'value');
745-
746- You may use the ` deleteCookie ` method to permanently delete the given cookie:
747-
748- $browser->deleteCookie('name');
749-
750750<a name =" available-assertions " ></a >
751751## Available Assertions
752752
@@ -971,7 +971,7 @@ Assert that the given cookie is present:
971971<a name =" assert-has-plain-cookie " ></a >
972972#### assertHasPlainCookie
973973
974- Assert that the given plain cookie is present:
974+ Assert that the given unencrypted cookie is present:
975975
976976 $browser->assertHasPlainCookie($name);
977977
@@ -985,7 +985,7 @@ Assert that the given cookie is not present:
985985<a name =" assert-plain-cookie-missing " ></a >
986986#### assertPlainCookieMissing
987987
988- Assert that the given plain cookie is not present:
988+ Assert that the given unencrypted cookie is not present:
989989
990990 $browser->assertPlainCookieMissing($name);
991991
0 commit comments