Skip to content
Snippets Groups Projects
Unverified Commit ad33ebdb authored by Jessica DeWitt's avatar Jessica DeWitt Committed by GitHub
Browse files

finished settings port (#13019)

parent 5c360d43
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,31 @@ describe("scenarios > admin > settings", () => {
before(restore);
beforeEach(signInAsAdmin);
it("should render the proper auth options", () => {
// Ported from `SettingsAuthenticationOptions.e2e.spec.js`
// Google sign in
cy.visit("/admin/settings/authentication");
cy.findByText("Sign in with Google");
cy.findAllByText("Configure")
.first()
.click();
cy.contains(
"To allow users to sign in with Google you'll need to give Metabase a Google Developers console application client ID.",
);
// *** should be 'Save changes'
cy.findByText("Save Changes");
// SSO
cy.visit("/admin/settings/authentication");
cy.findByText("LDAP").click();
cy.findAllByText("Configure")
.last()
.click();
cy.findByText("LDAP Authentication");
cy.findByText("User Schema");
cy.findByText("Save changes");
});
it("should save a setting", () => {
cy.server();
cy.route("PUT", "**/admin-email").as("saveSettings");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment