From a0301bc73760c3790e8d55c01206954c5563e402 Mon Sep 17 00:00:00 2001 From: Jessica DeWitt <58329466+Opalevanescence@users.noreply.github.com> Date: Tue, 28 Jul 2020 10:39:48 -0500 Subject: [PATCH] deleted settings.e2e.spec.js (#13008) --- .../admin/settings/settings.e2e.spec.js | 74 ------------------- 1 file changed, 74 deletions(-) delete mode 100644 frontend/test/metabase/admin/settings/settings.e2e.spec.js diff --git a/frontend/test/metabase/admin/settings/settings.e2e.spec.js b/frontend/test/metabase/admin/settings/settings.e2e.spec.js deleted file mode 100644 index cd3d5b24172..00000000000 --- a/frontend/test/metabase/admin/settings/settings.e2e.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -// Converted from an old Selenium E2E test -import "metabase/plugins/builtin"; -import { useSharedAdminLogin, createTestStore } from "__support__/e2e"; -import { mount } from "enzyme"; -import SettingInput from "metabase/admin/settings/components/widgets/SettingInput"; -import { - INITIALIZE_SETTINGS, - UPDATE_SETTING, -} from "metabase/admin/settings/settings"; -import { LOAD_CURRENT_USER } from "metabase/redux/user"; -import { setInputValue } from "__support__/enzyme"; - -describe("admin/settings", () => { - beforeAll(async () => useSharedAdminLogin()); - - // TODO Atte Keinänen 6/22/17: Disabled because we already have converted this to Jest&Enzyme in other branch - describe("admin settings", () => { - // pick a random site name to try updating it to - const siteName = "Metabase" + Math.random(); - - it("should save the setting", async () => { - const store = await createTestStore(); - - store.pushPath("/admin/settings/general"); - const app = mount(store.getAppContainer()); - - await store.waitForActions([LOAD_CURRENT_USER, INITIALIZE_SETTINGS]); - - // first just make sure the site name isn't already set (it shouldn't since we're using a random name) - const input = app - .find(SettingInput) - .first() - .find("input"); - expect(input.prop("value")).not.toBe(siteName); - - // clear the site name input, send the keys corresponding to the site name, then blur to trigger the update - setInputValue(input, siteName); - - await store.waitForActions([UPDATE_SETTING]); - }); - - it("should show the updated name after page reload", async () => { - const store = await createTestStore(); - - store.pushPath("/admin/settings/general"); - const app = mount(store.getAppContainer()); - - await store.waitForActions([LOAD_CURRENT_USER, INITIALIZE_SETTINGS]); - - const input = app - .find(SettingInput) - .first() - .find("input"); - expect(input.prop("value")).toBe(siteName); - }); - - it("should show display nested settings", async () => { - const store = await createTestStore(); - - store.pushPath("/admin/settings/authentication/google"); - const app = mount(store.getAppContainer()); - - await store.waitForActions([LOAD_CURRENT_USER, INITIALIZE_SETTINGS]); - - const text = app - .find("p.text-medium") - .last() - .text(); - expect(text).toEqual( - "Allow users to sign up on their own if their Google account email address is from:", - ); - }); - }); -}); -- GitLab