-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from NIAEFEUP/feature/prepend-mailto
Prepend mailto: when company inserts an email in one click application
- Loading branch information
Showing
7 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -644,6 +644,14 @@ describe("Edit Offer Form", () => { | |
fireEvent.blur(input); | ||
}); | ||
|
||
expect(await wrapper.findDescriptionOf(wrapper.getByLabelText("Application URL"))) | ||
.not.toHaveTextContent(HumanValidationReasons.BAD_APPLY_URL); | ||
|
||
await act(() => { | ||
fireEvent.change(input, { target: { value: "[email protected]" } }); | ||
fireEvent.blur(input); | ||
}); | ||
|
||
expect(await wrapper.findDescriptionOf(wrapper.getByLabelText("Application URL"))) | ||
.not.toHaveTextContent(HumanValidationReasons.BAD_APPLY_URL); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -665,6 +665,15 @@ describe("Create Offer Form", () => { | |
|
||
expect(await wrapper.findDescriptionOf(wrapper.getByLabelText("Application URL"))) | ||
.not.toHaveTextContent(HumanValidationReasons.BAD_APPLY_URL); | ||
|
||
await act(() => { | ||
fireEvent.focus(input); | ||
fireEvent.change(input, { target: { value: "[email protected]" } }); | ||
fireEvent.blur(input); | ||
}); | ||
|
||
expect(await wrapper.findDescriptionOf(input)) | ||
.not.toHaveTextContent(HumanValidationReasons.BAD_APPLY_URL); | ||
}); | ||
|
||
it("should be visible advanced settings if form error in these publication date", async () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters