@@ -17,8 +17,8 @@ describe('OpenID plugin tests', function () {
1717 } ) ;
1818
1919 it ( 'Enable OpenID Authentication Plugin' , function ( ) {
20- /* cy.server();
21- cy.route('POST', Cypress.env("baseUrl") + '/index.php/' + Cypress.env("context") + '/$$$call$$$/grid/settings/plugins/settings-plugin-grid/manage?category=generic&plugin=openidplugin&verb=settings&save=1').as('saveSettings');*/
20+ /* cy.server();
21+ cy.route('POST', Cypress.env("baseUrl") + '/index.php/' + Cypress.env("context") + '/$$$call$$$/grid/settings/plugins/settings-plugin-grid/manage?category=generic&plugin=openidplugin&verb=settings&save=1').as('saveSettings');*/
2222 cy . login ( 'admin' , 'admin' , 'publicknowledge' ) ;
2323 cy . get ( 'nav[class="app__nav"] a:contains("Website")' ) . click ( ) ;
2424 cy . get ( 'button[id="plugins-button"]' ) . click ( ) ;
@@ -31,11 +31,11 @@ describe('OpenID plugin tests', function () {
3131 // Fill out settings form
3232 cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][active]"]' ) . check ( { force : true } ) ;
3333 cy . waitJQuery ( ) ;
34- cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][configUrl]"]' ) . clear ( ) . type ( Cypress . env ( "OPENIDURL " ) ) ;
35- cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][btnImg]"]' ) . clear ( ) . type ( Cypress . env ( "OPENIDIMG " ) ) ;
36- cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][btnTxt][en_US]"]' ) . clear ( ) . type ( Cypress . env ( "OPENIDTXT " ) ) ;
37- cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][clientId]"]' ) . clear ( ) . type ( Cypress . env ( "OPENIDID " ) ) ;
38- cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][clientSecret]"]' ) . clear ( ) . type ( Cypress . env ( "OOPENIDSECRET " ) ) ;
34+ cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][configUrl]"]' ) . clear ( ) . type ( Cypress . env ( "OPENID_CUSTOM_URL " ) ) ;
35+ cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][btnImg]"]' ) . clear ( ) . type ( Cypress . env ( "OPENID_CUSTOM_IMG " ) ) ;
36+ cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][btnTxt][en_US]"]' ) . clear ( ) . type ( Cypress . env ( "OPENID_CUSTOM_TXT " ) ) ;
37+ cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][clientId]"]' ) . clear ( ) . type ( Cypress . env ( "OPENID_CUSTOM_ID " ) ) ;
38+ cy . get ( 'form[id="openIDSettings"] input[name="provider[custom][clientSecret]"]' ) . clear ( ) . type ( Cypress . env ( "OPENID_CUSTOM_SECRET " ) ) ;
3939 cy . get ( 'form[id="openIDSettings"] input[name="legacyLogin"]' ) . check ( { force : true } ) ;
4040 cy . get ( 'form[id="openIDSettings"] div[id="generateSecret"]' ) . click ( ) ;
4141 cy . get ( 'form[id="openIDSettings"] input[name="generateAPIKey"]' ) . check ( { force : true } ) ;
@@ -49,6 +49,6 @@ describe('OpenID plugin tests', function () {
4949
5050 it ( 'Check OpenID Authentication Plugin Login Page' , function ( ) {
5151 cy . visit ( '/index.php/publicknowledge/login' ) ;
52- cy . get ( 'a[id="openid-provider-custom"]' ) . contains ( Cypress . env ( "OPENIDTXT " ) ) ;
52+ cy . get ( 'a[id="openid-provider-custom"]' ) . contains ( Cypress . env ( "OPENID_CUSTOM_TXT " ) ) ;
5353 } ) ;
5454} ) ;
0 commit comments