diff --git a/tests/UserTest.php b/tests/UserTest.php new file mode 100644 index 00000000..82b1eda8 --- /dev/null +++ b/tests/UserTest.php @@ -0,0 +1,37 @@ +visit(route('showSignup')) + ->type('Joe', 'first_name') + ->type('Blogs', 'last_name') + ->type($this->faker->email, 'email') + ->type('password', 'password') + ->type('password', 'password_confirmation') + ->check('terms_agreed') + ->press('Sign Up') + ->seePageIs(route('login')); + } + + public function testLogin() + { + $this->visit(route('login')) + ->type($this->test_user_email, 'email') + ->type($this->test_user_password, 'password') + ->press('Login') + ->seePageIs(route('showCreateOrganiser', ['first_run' => '1'])); + } + +}