Skip to content

Commit

Permalink
WorkOS provider: fix tests by enabling autoconfirm
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Feb 28, 2022
1 parent 1cddd51 commit 638b5d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/external_workos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ func WorkosTestSignupSetup(ts *ExternalTestSuite, tokenCount *int, userCount *in

func (ts *ExternalTestSuite) TestSignupExternalWorkosAuthorizationCode() {
ts.Config.DisableSignup = false
// Enable autoconfirm since emails from WorkOS are not verified.
ts.Config.Mailer.Autoconfirm = true

tokenCount, userCount := 0, 0
code := "authcode"
Expand Down Expand Up @@ -159,6 +161,8 @@ func (ts *ExternalTestSuite) TestSignupExternalWorkosDisableSignupErrorWhenEmpty

func (ts *ExternalTestSuite) TestSignupExternalWorkosDisableSignupSuccessWithPrimaryEmail() {
ts.Config.DisableSignup = true
// Enable autoconfirm since emails from WorkOS are not verified.
ts.Config.Mailer.Autoconfirm = true

ts.createUser("test_prof_workos", "workos@example.com", "John Doe", "http://example.com/avatar", "")

Expand Down

0 comments on commit 638b5d0

Please sign in to comment.