We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2916d1f + 06dc013 commit 6898425Copy full SHA for 6898425
plugins/hwp-previews/tests/e2e/specs/settings.spec.js
@@ -132,4 +132,17 @@ test.describe("HWP Previews Admin Settings", () => {
132
expect(inputValue).toContain(buttonText.trim());
133
}
134
});
135
+
136
+ test(`URL input rejects an incorrect URL value`, async ({ page }) => {
137
+ const urlInput = page.locator("input.hwp-previews-url");
138
+ const incorrectUrlValue = "this is not a valid url";
139
140
+ await urlInput.fill(incorrectUrlValue);
141
+ await page.getByRole("button", { name: "Save Changes" }).click();
142
143
+ const validationMessage = await urlInput.evaluate(
144
+ (element) => element.validationMessage,
145
+ );
146
+ expect(validationMessage).not.toBe("");
147
+ });
148
0 commit comments