proud-breakfast-29892
09/15/2022, 3:07 PMts
const loginSaml = (userName: string, password: string, idpUrl: string) => {
cy.clearLocalStorage();
cy.clearCookies();
cy.origin('https://admin.us1.gigya.com', {args: idpUrl}, (url) => {
cy.request({
method: 'GET',
url
}).then(() => {
cy.request({
method: 'GET',
url: 'https://admin.us1.gigya.com/admin.console.getSamlSettingsByDomain?domainName=cdpe2e&isCDP=true'
});
});
});
};
it('Should manage permission in Universe & log-in using SAML', () => {
const idpUrl = `https://cdpe2e.my.st1.universe.cdp.gigya.com`;
loginSaml('a', 'b', idpUrl);
cy.visit(idpUrl);