Skip to content
Snippets Groups Projects
Unverified Commit 17701914 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Fix Percy static-viz failures on `master` (#28323)

* Fix broken visual tests

* Increase the timeout due to slow webmail interaction
parent 63799bc8
No related branches found
No related tags found
No related merge requests found
......@@ -53,11 +53,13 @@ export const clearInbox = () => {
};
export const openEmailPage = emailSubject => {
cy.window().then(win => (win.location.href = "http://localhost"));
const webmailInterface = `http://localhost:${WEB_PORT}`;
cy.window().then(win => (win.location.href = webmailInterface));
cy.findByText(emailSubject).click();
return cy.hash().then(path => {
const htmlPath = `http://localhost${path.slice(1)}/html`;
const htmlPath = `${webmailInterface}${path.slice(1)}/html`;
cy.window().then(win => (win.location.href = htmlPath));
cy.findByText(emailSubject);
});
......@@ -65,7 +67,7 @@ export const openEmailPage = emailSubject => {
export const clickSend = () => {
cy.button("Send email now").click();
cy.button("Email sent", 30000);
cy.button("Email sent", 60000);
};
export const sendSubscriptionsEmail = recipient => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment