fix e2e test
This commit is contained in:
@@ -9,7 +9,6 @@ fixture`Admin signup form`.page(`${getSiteRoot()}/admin/signups`)
|
|||||||
.requestHooks(LOGGER)
|
.requestHooks(LOGGER)
|
||||||
.after(async (ctx) => {
|
.after(async (ctx) => {
|
||||||
const token = await generateAccessToken();
|
const token = await generateAccessToken();
|
||||||
|
|
||||||
await deleteForm(ctx.formId, token);
|
await deleteForm(ctx.formId, token);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -35,7 +34,8 @@ test("Logged in user can create signup", async (t) => {
|
|||||||
.click(visible);
|
.click(visible);
|
||||||
|
|
||||||
const newQuestionButton = Selector("[data-e2e=\"admin-signup-new-question\"]");
|
const newQuestionButton = Selector("[data-e2e=\"admin-signup-new-question\"]");
|
||||||
const lastQuestion = () => Selector("[data-e2e=\"admin-signup-question\"]").child("div").child("div").nth(-1);
|
const lastQuestion = () => Selector("[data-e2e=\"admin-signup-question\"]").child("div").child("div").child("div")
|
||||||
|
.nth(-1);
|
||||||
|
|
||||||
await t.click(newQuestionButton);
|
await t.click(newQuestionButton);
|
||||||
let question = lastQuestion();
|
let question = lastQuestion();
|
||||||
|
|||||||
Reference in New Issue
Block a user