mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-06-22 04:11:55 +10:00
Merge remote-tracking branch 'origin/feat/e2e-test-plan-2b10' into feat/e2e-test-plan-2b10
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ export async function logoutViaUi(page: Page, account: E2EAccount) {
|
||||
await page.goto("/auth/login");
|
||||
}
|
||||
|
||||
export async function registerViaApi(request: APIRequestContext, account: E2EAccount, baseURL: string) {
|
||||
async function registerViaApi(request: APIRequestContext, account: E2EAccount, baseURL: string) {
|
||||
const response = await request.post("/api/auth/sign-up/email", {
|
||||
headers: {
|
||||
origin: baseURL,
|
||||
|
||||
@@ -13,7 +13,7 @@ export type E2EAccount = {
|
||||
password: string;
|
||||
};
|
||||
|
||||
export function createRunSlug(testInfo: TestInfo) {
|
||||
function createRunSlug(testInfo: TestInfo) {
|
||||
const worker = testInfo.workerIndex;
|
||||
const title = sanitize(testInfo.titlePath.join("-")).slice(0, 32);
|
||||
const suffix = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
|
||||
|
||||
Reference in New Issue
Block a user