diff --git a/src/browser_authentication_app_skeleton/spec/flows/authentication_spec.cr.ecr b/src/browser_authentication_app_skeleton/spec/flows/authentication_spec.cr.ecr index cee71bcd..907c8e45 100644 --- a/src/browser_authentication_app_skeleton/spec/flows/authentication_spec.cr.ecr +++ b/src/browser_authentication_app_skeleton/spec/flows/authentication_spec.cr.ecr @@ -4,7 +4,7 @@ require "../spec_helper" # This is due to race conditions in LuckyFlow. # Ref: https://github.com/luckyframework/lucky_cli/issues/883 describe "Authentication flow", tags: "flow" do - pending "works" do + it "works" do flow = AuthenticationFlow.new("test@example.com") flow.sign_up "password" @@ -20,7 +20,7 @@ describe "Authentication flow", tags: "flow" do # Use the `visit` method's `as` option in your tests to sign in as that user. # # Feel free to delete this once you have other tests using the 'as' option. - pending "allows sign in through backdoor when testing" do + it "allows sign in through backdoor when testing" do user = UserFactory.create flow = BaseFlow.new diff --git a/src/browser_authentication_app_skeleton/spec/flows/reset_password_spec.cr.ecr b/src/browser_authentication_app_skeleton/spec/flows/reset_password_spec.cr.ecr index 809a0322..f190389c 100644 --- a/src/browser_authentication_app_skeleton/spec/flows/reset_password_spec.cr.ecr +++ b/src/browser_authentication_app_skeleton/spec/flows/reset_password_spec.cr.ecr @@ -4,7 +4,7 @@ require "../spec_helper" # This is due to race conditions in LuckyFlow. # Ref: https://github.com/luckyframework/lucky_cli/issues/883 describe "Reset password flow", tags: "flow" do - pending "works" do + it "works" do user = UserFactory.create flow = ResetPasswordFlow.new(user) diff --git a/src/lucky_cli/shard_file_generator.cr b/src/lucky_cli/shard_file_generator.cr index cab8dca1..121a6398 100644 --- a/src/lucky_cli/shard_file_generator.cr +++ b/src/lucky_cli/shard_file_generator.cr @@ -106,7 +106,7 @@ class ShardFileGenerator { "lucky_flow" => { "github" => "luckyframework/lucky_flow", - "version" => "~> 0.10.1", + "version" => "~> 0.10.2", }, } end diff --git a/src/web_app_skeleton/spec/setup/start_app_server.cr.ecr b/src/web_app_skeleton/spec/setup/start_app_server.cr.ecr index e239f37d..96818901 100644 --- a/src/web_app_skeleton/spec/setup/start_app_server.cr.ecr +++ b/src/web_app_skeleton/spec/setup/start_app_server.cr.ecr @@ -4,6 +4,9 @@ spawn do app_server.listen end +<%- if browser? -%> +LuckyFlow.wait_for_server +<%- end -%> Spec.after_suite do <%- if browser? -%> LuckyFlow.shutdown