Skip to content
Snippets Groups Projects
Unverified Commit 2f077d95 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix admin/people test due to modal transition [ci all]

parent 78aace83
Branches
Tags
No related merge requests found
......@@ -4,6 +4,7 @@ import {
findElement,
waitForElementAndClick,
waitForElementAndSendKeys,
waitForElementRemoved,
waitForUrl,
screenshot,
loginMetabase,
......@@ -31,7 +32,7 @@ describeE2E("admin/people", () => {
await waitForElementAndClick(driver, ".Button.Button--primary");
// fill in user info form
const addButton = findElement(driver, ".Modal .Button[disabled]");
const addButton = findElement(driver, ".ModalContent .Button[disabled]");
await waitForElementAndSendKeys(driver, "[name=firstName]", firstName);
await waitForElementAndSendKeys(driver, "[name=lastName]", lastName);
await waitForElementAndSendKeys(driver, "[name=email]", email);
......@@ -56,7 +57,7 @@ describeE2E("admin/people", () => {
await waitForElementAndClick(driver, ".ContentTable tr:first-child td:last-child a");
await waitForElementAndClick(driver, ".UserActionsSelect li:first-child");
const saveButton = findElement(driver, ".Modal .Button[disabled]");
const saveButton = findElement(driver, ".ModalContent .Button[disabled]");
await waitForElementAndSendKeys(driver, "[name=firstName]", `${firstName}x`);
await waitForElementAndSendKeys(driver, "[name=lastName]", `${lastName}x`);
await waitForElementAndSendKeys(driver, "[name=email]", `${email}x`);
......@@ -67,6 +68,7 @@ describeE2E("admin/people", () => {
await waitForElementText(driver, ".ContentTable tr:first-child td:nth-child(3)", `${email}x`);
// reset user password
await waitForElementRemoved(driver, ".Modal");
await waitForElementAndClick(driver, ".ContentTable tr:first-child td:last-child a");
await waitForElementAndClick(driver, ".UserActionsSelect li:nth-child(2)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment