Skip to content

Commit

Permalink
Merge pull request #865 from datacite/codycooperross/issue864
Browse files Browse the repository at this point in the history
Fix for Fabrica form resets selected prefix when entering metadata
  • Loading branch information
codycooperross authored May 28, 2024
2 parents 7ee1750 + 8a06c1f commit aed81a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/doi-doi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Component.extend({

repositoryPrefixes: null,

didReceiveAttrs() {
init() {
this._super(...arguments);

this.setDefaultPrefix();
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/staff_admin/contact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ describe('ACCEPTANCE: STAFF_ADMIN | CONTACTS', () => {

cy.getCookie('_jwt').then((cookie) => {
cy.createContact(email, given_name, family_name, roles, type, provider_id, Cypress.env('api_url'), cookie.value).then((id) => {
cy.wait(waitTime4)
cy.log('CREATED CONTACT: ' + given_name + ' ' + family_name + ' (' + id + ')');

// Give it a little extra time to process the new contact so that we can search for it.
cy.visit('/contacts');
cy.url().should('include', '/contacts')
cy.wait(waitTime)
cy.wait(waitTime4)

cy.get('input[name="query"]')
.type(family_name + '{enter}', { force: true } )
Expand Down

0 comments on commit aed81a5

Please sign in to comment.