Skip to content

Commit 02c7696

Browse files
committed
test fixes
1 parent 567a302 commit 02c7696

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/openid_plugin_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
CYPRESS_DBPASSWORD: ojs-ci
5050
CYPRESS_DBHOST: 127.0.0.1
5151
CYPRESS_FILESDIR: files
52-
CYPRESS_OPENID_CUSTOM_ID: ${{ secrets.CYPRESS_OPENID_CUSTOM_ID }}
53-
CYPRESS_OPENID_CUSTOM_IMG: ${{ secrets.CYPRESS_OPENID_CUSTOM_IMG }}
54-
CYPRESS_OPENID_CUSTOM_SECRET: ${{ secrets.CYPRESS_OPENID_CUSTOM_SECRET }}
55-
CYPRESS_OPENID_CUSTOM_TXT: ${{ secrets.CYPRESS_OPENID_CUSTOM_TXT }}
56-
CYPRESS_OPENID_CUSTOM_URL: ${{ secrets.CYPRESS_OPENID_CUSTOM_URL }}
52+
CYPRESS_OPENIDID: ${{ secrets.CYPRESS_OPENID_CUSTOM_ID }}
53+
CYPRESS_OPENIDIMG: ${{ secrets.CYPRESS_OPENID_CUSTOM_IMG }}
54+
CYPRESS_OPENIDSECRET: ${{ secrets.CYPRESS_OPENID_CUSTOM_SECRET }}
55+
CYPRESS_OPENIDTXT: ${{ secrets.CYPRESS_OPENID_CUSTOM_TXT }}
56+
CYPRESS_OPENIDURL: ${{ secrets.CYPRESS_OPENID_CUSTOM_URL }}
5757
steps:
5858
- name: Setup PHP, extensions and composer
5959
uses: shivammathur/setup-php@v2

cypress/tests/functional/OpenID.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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("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"));
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"));
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("OPENID_CUSTOM_TXT"));
52+
cy.get('a[id="openid-provider-custom"]').contains(Cypress.env("OPENIDTXT"));
5353
});
5454
});

0 commit comments

Comments
 (0)