Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
a76fcd86
Commit
a76fcd86
authored
4 years ago
by
Jure
Browse files
Options
Downloads
Patches
Plain Diff
test: fix submission spec
parent
3a26c84d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cypress/integration/001-submission_spec.js
+6
-6
6 additions, 6 deletions
cypress/integration/001-submission_spec.js
with
6 additions
and
6 deletions
cypress/integration/001-submission_spec.js
+
6
−
6
View file @
a76fcd86
...
@@ -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, E
n
gland
'
)
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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment