fix react-toastify 😎
This commit is contained in:
@@ -81,10 +81,10 @@ test("Logged in user can create event", async (t) => {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
t.fixtureCtx.eventId = parsed.id;
|
||||
|
||||
const statusMessage = Selector("[data-e2e=\"admin-form-status-message\"]");
|
||||
const statusMessage = Selector(".Toastify__toast-body");
|
||||
await t
|
||||
.hover(statusMessage)
|
||||
.expect(
|
||||
statusMessage.innerText,
|
||||
).eql("Event created successfully");
|
||||
).eql("Event created successfully 😎");
|
||||
});
|
||||
|
||||
@@ -86,10 +86,10 @@ test("Logged in user can create signup", async (t) => {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
t.fixtureCtx.formId = parsed.id;
|
||||
|
||||
const statusMessage = Selector("[data-e2e=\"admin-form-status-message\"]");
|
||||
const statusMessage = Selector(".Toastify__toast-body");
|
||||
await t
|
||||
.hover(statusMessage)
|
||||
.expect(
|
||||
statusMessage.innerText,
|
||||
).eql("Sign-up created successfully");
|
||||
).eql("Sign-up created successfully 😎");
|
||||
});
|
||||
|
||||
@@ -52,10 +52,10 @@ test("User signups to event from front page", async (t) => {
|
||||
|
||||
await t.click(Selector("button").nth(-1));
|
||||
|
||||
const statusMessage = Selector(".sign-up-statusmessage");
|
||||
const statusMessage = Selector(".Toastify__toast-body");
|
||||
await t
|
||||
.hover(statusMessage)
|
||||
.expect(
|
||||
statusMessage.innerText,
|
||||
).eql("Sign-up submitted successfully");
|
||||
).eql("Sign-up submitted successfully 😎");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user