Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("Then all fields are cleared and a success message is shown", () => {
helper.waitForTextNotToBePresentInElement(
createImagePage.form.nameField,
data.name
);
helper.waitForTextNotToBePresentInElement(
createImagePage.form.descriptionField,
data.description
);
helper.waitForTextNotToBePresentInElement(
createImagePage.form.imageUrlField,
data.imageUrlValue
);
const successMessage = element(by.css(".success-message"));
helper.waitForElementVisibility(successMessage);
});
it("Then all fields are cleared and a success message is shown", () => {
helper.waitForTextNotToBePresentInElement(
createImagePage.form.nameField,
data.name
);
helper.waitForTextNotToBePresentInElement(
createImagePage.form.descriptionField,
data.description
);
helper.waitForTextNotToBePresentInElement(
createImagePage.form.imageUrlField,
data.imageUrlValue
);
const successMessage = element(by.css(".success-message"));
helper.waitForElementVisibility(successMessage);
});
});
it("Then all fields are cleared and a success message is shown", () => {
helper.waitForTextNotToBePresentInElement(
createImagePage.form.nameField,
data.name
);
helper.waitForTextNotToBePresentInElement(
createImagePage.form.descriptionField,
data.description
);
helper.waitForTextNotToBePresentInElement(
createImagePage.form.imageUrlField,
data.imageUrlValue
);
const successMessage = element(by.css(".success-message"));
helper.waitForElementVisibility(successMessage);
});
});