Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

580 B
Raw Blame
export function getSuccessUi() {
  return cy.findByTestId("admin-layout-content").findByText("Success");
}

export const getSamlCertificate = () => {
  return cy.readFile("test_resources/sso/auth0-public-idp.cert", "utf8");
};

export const setupSaml = () => {
  getSamlCertificate().then((certificate) => {
    cy.request("PUT", "/api/setting", {
      "saml-enabled": true,
      "saml-identity-provider-uri": "https://example.test",
      "saml-identity-provider-certificate": certificate,
      "saml-identity-provider-issuer": "https://example.test/issuer",
    });
  });
};