Skip to content

Commit

Permalink
pkp/pkp-lib#7366 user api key generation process update
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Aug 25, 2022
1 parent 91d0191 commit 785457b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cypress/tests/integration/API.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ describe('API tests', function() {
cy.get('.app__userNav button').click();
cy.get('a:contains("Edit Profile")').click();
cy.get('a[name="apiSettings"]').click();
cy.get('input[id="apiKeyEnabled"]').check();
cy.get('input[id="generateApiKey"]').check();
cy.get('form[id="apiProfileForm"] button:contains("Save")').click();
cy.get('form[id="apiProfileForm"] button:contains("Create API Key")').click();
cy.waitJQuery();
cy.get('span:contains("Your changes have been saved.")');
cy.get('input[id^="apiKey-"]').invoke('val').as('apiKey').then(function() {
cy.log(this.apiKey);
});
cy.logout();
});

it("Lists submissions using an author's API key", function() {
cy.request('index.php/publicknowledge/api/v1/submissions?apiToken=' + this.apiKey).then(response => {
// The author only has a single submission; submissions from other users should not be included.
Expand Down
1 change: 1 addition & 0 deletions dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<migration class="PKP\migration\upgrade\v3_4_0\I7286_BatchesMigration"/>
<migration class="APP\migration\upgrade\v3_4_0\I8151_ExtendSettingValues"/>
<migration class="PKP\migration\upgrade\v3_4_0\I8151_ExtendSettingValues"/>
<migration class="PKP\migration\upgrade\v3_4_0\I7366_UpdateUserAPIKeySettings"/>
<data file="dbscripts/xml/upgrade/3.4.0_preupdate_email_templates.xml" />
<code function="installEmailTemplate" key="EDITOR_DECISION_SEND_TO_INTERNAL" locales="en_US" />
<code function="installEmailTemplate" key="EDITOR_DECISION_NOTIFY_OTHER_AUTHORS" locales="en_US" />
Expand Down

0 comments on commit 785457b

Please sign in to comment.