From 8b12c0a34aaf0ec45467a0f83f9fa4e47ae0eedb Mon Sep 17 00:00:00 2001 From: codycooperross <50597551+codycooperross@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:18:55 -0500 Subject: [PATCH] Add back form edit test --- cypress/e2e/client_admin/doi.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cypress/e2e/client_admin/doi.test.ts b/cypress/e2e/client_admin/doi.test.ts index 015d042bd..d3b91d0a0 100644 --- a/cypress/e2e/client_admin/doi.test.ts +++ b/cypress/e2e/client_admin/doi.test.ts @@ -317,6 +317,20 @@ describe('ACCEPTANCE: CLIENT_ADMIN | DOIS', () => { }); }); + + it('is editing a doi - FORM', () => { + cy.visit('/dois/' + encodeURIComponent(prefix + '/' + Cypress.env('suffix')) + '/edit'); + cy.url().should('include', '/dois/' + encodeURIComponent(prefix + '/' + Cypress.env('suffix')) + '/edit').then(() => { + + cy.wait(waitTime); + // Get entered creator. + cy.get('input[data-test-name]').should('be.visible').should('have.value', creator) + cy.get('.add-name-identifier').should('be.visible') + cy.get('.add-affiliation').should('be.visible') + + }) + }); + it('is creating a doi - FILE UPLOAD', () => { cy.visit('/repositories/datacite.test/dois/upload'); cy.url().should('include', '/repositories/datacite.test/dois/upload').then(() => {