Newer
Older
Tom Robinson
committed
import {
ensureLoggedIn,
describeE2E
} from "../support/utils";
jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;
describeE2E("admin/settings", () => {
beforeEach(() =>
ensureLoggedIn(server, driver, "bob@metabase.com", "12341234")
);
describe("admin settings", () => {
Tom Robinson
committed
const siteName = "Metabase" + Math.random();
Tom Robinson
committed
await d.get(`${server.host}/admin/settings/general`);
// first just make sure the site name isn't already set (it shouldn't since we're using a random name)
Tom Robinson
committed
expect(await d.select(".SettingsInput").wait().attribute("value")).not.toBe(siteName);
// clear the site name input, send the keys corresponding to the site name, then blur to trigger the update
Tom Robinson
committed
await d.select(".SettingsInput").wait().clear().sendKeys(siteName).blur();
// wait for the loading indicator to show success
Tom Robinson
committed
await d.select(".SaveStatus.text-success").wait();
Tom Robinson
committed
await d.get(`${server.host}/admin/settings/general`);
Tom Robinson
committed
expect(await d.select(".SettingsInput").wait().attribute("value")).toBe(siteName);
});
});
});