Skip to content

Commit

Permalink
Newsletter Dusk test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Apr 7, 2022
1 parent 553cb3d commit 7830ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@lang('Sign up for our newsletter to stay up to date.')
</p>
</div>
<div class="sm:w-full sm:max-w-md xl:mt-0 xl:ml-8">
<div class="sm:w-full sm:max-w-md xl:mt-0 xl:ml-8" dusk="newsletter">
<lazy-component>
<graphql-mutation v-cloak query="mutation visitor ($email: String!) { subscribeEmailToNewsletter(email: $email) { status } }" :alert="false" :clear="true">
<div slot-scope="{ mutate, variables, mutated, error }">
Expand Down
1 change: 1 addition & 0 deletions tests/Browser/NewsletterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function test()
$this->browse(function (Browser $browser) {
$email = $this->faker->email;
$browser->visit('/')
->scrollIntoView('@newsletter')
->waitUntilAllAjaxCallsAreFinished()
->type('@newsletter-email', $email)
->click('@newsletter-submit')
Expand Down

0 comments on commit 7830ee9

Please sign in to comment.