Skip to content
Snippets Groups Projects
Commit a76fcd86 authored by Jure's avatar Jure
Browse files

test: fix submission spec

parent 3a26c84d
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ describe('URL submission test', () => { ...@@ -32,7 +32,7 @@ describe('URL submission test', () => {
cy.get('[data-testid="submission.affiliation"]') cy.get('[data-testid="submission.affiliation"]')
.click() .click()
.type('Example University, Egland') .type('Example University, England')
cy.get('[data-testid="submission.contact"]') cy.get('[data-testid="submission.contact"]')
.click() .click()
...@@ -51,7 +51,7 @@ describe('URL submission test', () => { ...@@ -51,7 +51,7 @@ describe('URL submission test', () => {
.type('This is my ethics statement') .type('This is my ethics statement')
cy.get('*[aria-label="Type of Research Object"]').click({ force: true }) cy.get('*[aria-label="Type of Research Object"]').click({ force: true })
cy.get('#react-select-2-option-1').click() cy.get('#react-select-3-option-1').click()
cy.get('[data-testid="submission.suggested"]') cy.get('[data-testid="submission.suggested"]')
.click() .click()
.type('Erica James, Matthew Matretzky') .type('Erica James, Matthew Matretzky')
...@@ -77,17 +77,17 @@ describe('URL submission test', () => { ...@@ -77,17 +77,17 @@ describe('URL submission test', () => {
cy.get('*[aria-label*="healthy subjects only or patients"]').click({ cy.get('*[aria-label*="healthy subjects only or patients"]').click({
force: true, force: true,
}) })
cy.get('#react-select-3-option-1').click() cy.get('#react-select-4-option-1').click()
cy.get('*[aria-label*="involved human subjects"]').click({ cy.get('*[aria-label*="involved human subjects"]').click({
force: true, force: true,
}) })
cy.get('#react-select-4-option-0').click() cy.get('#react-select-5-option-0').click()
cy.get('*[aria-label*="animal research approved"]').click({ cy.get('*[aria-label*="animal research approved"]').click({
force: true, force: true,
}) })
cy.get('#react-select-5-option-0').click() cy.get('#react-select-6-option-0').click()
cy.get('input[name="submission.methods"][value="Functional MRI"]').click() cy.get('input[name="submission.methods"][value="Functional MRI"]').click()
cy.get('input[name="submission.methods"][value="Optical Imaging"]').click() cy.get('input[name="submission.methods"][value="Optical Imaging"]').click()
...@@ -99,7 +99,7 @@ describe('URL submission test', () => { ...@@ -99,7 +99,7 @@ describe('URL submission test', () => {
cy.get('*[aria-label*="what field strength"]').click({ cy.get('*[aria-label*="what field strength"]').click({
force: true, force: true,
}) })
cy.get('#react-select-6-option-3').click() cy.get('#react-select-7-option-3').click()
cy.get('[data-testid="submission.humanMRIother"]') cy.get('[data-testid="submission.humanMRIother"]')
.click() .click()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment