Skip to content

Commit

Permalink
progress on ResetPassword test
Browse files Browse the repository at this point in the history
  • Loading branch information
laperlej committed Jun 29, 2024
1 parent 1d74be8 commit fac06e5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/src/entry/analysis/modules/ResetPassword.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { setActivePinia } from "pinia";
import { getGalaxyInstance } from "@/app/singleton";

import ResetPassword from "./ResetPassword.vue";
import assert from "assert";

Check failure on line 9 in client/src/entry/analysis/modules/ResetPassword.test.ts

View workflow job for this annotation

GitHub Actions / client-unit-test (18)

'assert' is defined but never used. Allowed unused vars must match /_.+/u

Check failure on line 9 in client/src/entry/analysis/modules/ResetPassword.test.ts

View workflow job for this annotation

GitHub Actions / client-unit-test (18)

'assert' is defined but never used. Allowed unused vars must match /_.+/u

const localVue = getLocalVue(true);

Expand Down Expand Up @@ -56,9 +57,13 @@ describe("ResetPassword", () => {
const wrapper = mountResetPassword({
redirect: "redirect_url",
});
const emailField = wrapper.find("#reset-email");
const submitButton = wrapper.find("#reset-password");

Check failure on line 61 in client/src/entry/analysis/modules/ResetPassword.test.ts

View workflow job for this annotation

GitHub Actions / client-unit-test (18)

'submitButton' is assigned a value but never used. Allowed unused vars must match /_.+/u

Check failure on line 61 in client/src/entry/analysis/modules/ResetPassword.test.ts

View workflow job for this annotation

GitHub Actions / client-unit-test (18)

'submitButton' is assigned a value but never used. Allowed unused vars must match /_.+/u
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);
});
});

0 comments on commit fac06e5

Please sign in to comment.