File tree 3 files changed +25
-7
lines changed
migrations/20231027074632_nextauth_ci_identifiers
3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,6 @@ test.describe.serial(() => {
96
96
) . toBeVisible ( ) ;
97
97
} ) ;
98
98
99
- test . describe ( "login" , ( ) => {
100
- test . afterEach ( async ( { page } ) => {
101
- await page . goto ( "/logout" ) ;
102
- } ) ;
103
- } ) ;
104
-
105
99
test ( "can login with magic link" , async ( { page } ) => {
106
100
await page . goto ( "/login" ) ;
107
101
@@ -155,5 +149,27 @@ test.describe.serial(() => {
155
149
156
150
await expect ( page . getByText ( "Test User" ) ) . toBeVisible ( ) ;
157
151
} ) ;
152
+
153
+ test ( "allow using different case in email" , async ( { page } ) => {
154
+ await page . goto ( "/login" ) ;
155
+
156
+ await page
157
+ . getByPlaceholder ( "[email protected] " )
158
+
159
+
160
+ await page . getByRole ( "button" , { name : "Continue" } ) . click ( ) ;
161
+
162
+ const code = await getCode ( ) ;
163
+
164
+ await page . getByPlaceholder ( "Enter your 6-digit code" ) . type ( code ) ;
165
+
166
+ await page . getByRole ( "button" , { name : "Continue" } ) . click ( ) ;
167
+
168
+ await page . waitForURL ( "/polls" ) ;
169
+
170
+ await page . getByTestId ( "user-dropdown" ) . click ( ) ;
171
+
172
+ await expect ( page . getByText ( "Test User" ) ) . toBeVisible ( ) ;
173
+ } ) ;
158
174
} ) ;
159
175
} ) ;
Original file line number Diff line number Diff line change
1
+ -- AlterTable
2
+ ALTER TABLE " verification_tokens" ALTER COLUMN " identifier" SET DATA TYPE CITEXT;
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ model Comment {
228
228
}
229
229
230
230
model VerificationToken {
231
- identifier String
231
+ identifier String @db.Citext
232
232
token String @unique
233
233
expires DateTime
234
234
You can’t perform that action at this time.
0 commit comments