From fac06e54d944151209b15f757400fcfb8ca1cf7f Mon Sep 17 00:00:00 2001 From: Jonathan Laperle Date: Sat, 29 Jun 2024 14:51:44 -0400 Subject: [PATCH] progress on ResetPassword test --- .../src/entry/analysis/modules/ResetPassword.test.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/src/entry/analysis/modules/ResetPassword.test.ts b/client/src/entry/analysis/modules/ResetPassword.test.ts index 95e4bac64c95..2c82c43839a0 100644 --- a/client/src/entry/analysis/modules/ResetPassword.test.ts +++ b/client/src/entry/analysis/modules/ResetPassword.test.ts @@ -6,6 +6,7 @@ import { setActivePinia } from "pinia"; import { getGalaxyInstance } from "@/app/singleton"; import ResetPassword from "./ResetPassword.vue"; +import assert from "assert"; const localVue = getLocalVue(true); @@ -56,9 +57,13 @@ describe("ResetPassword", () => { const wrapper = mountResetPassword({ redirect: "redirect_url", }); + const emailField = wrapper.find("#reset-email"); + const submitButton = wrapper.find("#reset-password"); + const testEmail = "eihfeuh"; + + emailField.setValue(testEmail); + const emailValue = emailField.element.textContent; + expect(emailValue).toBe(testEmail); - console.log("wrapper:", wrapper.html()); - const emailForm = wrapper.find("#reset-email"); - console.log("emailForm:", emailForm.element); }); });