Fix a set of E2E bugs causing several CI failures (#2177)
* Fix E2E bugs causing CI failutes * Revert setup in dx Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
39d395bf62
commit
55587e92c1
19 files changed
+198
-151
No files matched your search
@@ -65,10 +65,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
await sendPasswordResetEmail(passwordEmail);
|
||||
|
||||
/** So we can test the password reset flow on CI */
|
||||
if (
|
||||
process.env.PLAYWRIGHT_SECRET &&
|
||||
req.headers["x-playwright-secret"] === process.env.PLAYWRIGHT_SECRET
|
||||
) {
|
||||
if (process.env.NEXT_PUBLIC_IS_E2E) {
|
||||
return res.status(201).json({ message: "Reset Requested", resetLink });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user