Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2-quasar-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jfriedli
mat2-quasar-frontend
Commits
2309be9b
Verified
Commit
2309be9b
authored
5 years ago
by
jfriedli
Browse files
Options
Downloads
Patches
Plain Diff
fixed upload lib
parent
65b27305
No related branches found
No related tags found
2 merge requests
!149
Develop
,
!137
Update dependency cypress-file-upload to v3.5.3
Pipeline
#32974
passed
5 years ago
Stage: build
Stage: review_app_build
Stage: review_app
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/cypress/integration/download/init.spec.js
+14
-21
14 additions, 21 deletions
test/cypress/integration/download/init.spec.js
test/cypress/integration/upload/init.spec.js
+5
-10
5 additions, 10 deletions
test/cypress/integration/upload/init.spec.js
with
19 additions
and
31 deletions
test/cypress/integration/download/init.spec.js
+
14
−
21
View file @
2309be9b
...
...
@@ -21,9 +21,8 @@ describe('Download page tests', () => {
let
fileNameOne
=
'
test-image.png
'
cy
.
fixture
(
fileNameOne
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameOne
,
mimeType
:
'
image/png
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameOne
,
mimeType
:
'
image/png
'
}
)
}).
then
(()
=>
{
cy
.
get
(
'
.uppy-Dashboard-files
'
).
contains
(
fileNameOne
)
...
...
@@ -33,9 +32,8 @@ describe('Download page tests', () => {
let
fileNameTwo
=
'
test-image-two.png
'
cy
.
get
(
'
.uppy-DashboardContent-addMore
'
).
click
()
cy
.
fixture
(
fileNameTwo
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-DashboardTabs-list
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameTwo
,
mimeType
:
'
image/png
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameTwo
,
mimeType
:
'
image/png
'
}
)
}).
then
(()
=>
{
cy
.
get
(
'
.uppy-Dashboard-files
'
).
contains
(
fileNameTwo
)
...
...
@@ -79,9 +77,8 @@ describe('Download page tests', () => {
let
fileNameOne
=
'
eth_biwi_00546.pdf
'
cy
.
fixture
(
fileNameOne
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameOne
,
mimeType
:
'
application/pdf
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameOne
,
mimeType
:
'
application/pdf
'
}
)
}).
then
(()
=>
{
cy
.
get
(
'
.uppy-Dashboard-files
'
).
contains
(
fileNameOne
)
...
...
@@ -118,9 +115,8 @@ describe('Download page tests', () => {
let
fileNameOne
=
'
a-very-long-name-for-a-very-small-text-file-to-truncate.txt
'
cy
.
fixture
(
fileNameOne
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameOne
,
mimeType
:
'
text/plain
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileNameOne
,
mimeType
:
'
text/plain
'
}
)
})
cy
.
get
(
'
.uppy-StatusBar-actions > button
'
).
click
()
...
...
@@ -141,9 +137,8 @@ describe('Download page tests', () => {
{
fileName
:
'
txt2.txt
'
,
fileContent
:
txtFile
,
mimeType
:
'
text/plain
'
},
{
fileName
:
'
txt3.txt
'
,
fileContent
:
txtFile
,
mimeType
:
'
text/plain
'
}
]
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
files
,
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
files
)
})
cy
.
get
(
'
.uppy-StatusBar-actions > button
'
).
click
()
...
...
@@ -181,9 +176,8 @@ describe('Upload page negative tests', () => {
const
fileName
=
'
a-very-long-name-for-a-very-small-text-file-to-truncate.txt
'
cy
.
fixture
(
fileName
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileName
,
mimeType
:
'
text/plain
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
:
fileContent
,
fileName
:
fileName
,
mimeType
:
'
text/plain
'
}
)
})
cy
.
get
(
'
.uppy-StatusBar-actions > button
'
).
click
()
...
...
@@ -216,9 +210,8 @@ describe('Upload page negative tests', () => {
{
fileName
:
'
txt2.txt
'
,
fileContent
:
txtFile
,
mimeType
:
'
text/plain
'
},
{
fileName
:
'
txt3.txt
'
,
fileContent
:
txtFile
,
mimeType
:
'
text/plain
'
}
]
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
files
,
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
files
)
})
cy
.
get
(
'
.uppy-StatusBar-actions > button
'
).
click
()
...
...
This diff is collapsed.
Click to expand it.
test/cypress/integration/upload/init.spec.js
+
5
−
10
View file @
2309be9b
...
...
@@ -45,9 +45,8 @@ describe('Upload page tests', () => {
}).
as
(
'
fileUpload
'
)
cy
.
fixture
(
fileName
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
{
fileContent
,
fileName
,
mimeType
:
'
image/png
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
,
fileName
,
mimeType
:
'
image/png
'
}
)
})
...
...
@@ -72,9 +71,8 @@ describe('Upload page tests', () => {
const
fileName
=
'
not-supported.json
'
cy
.
fixture
(
fileName
).
then
(
fileContent
=>
{
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
{
fileContent
,
fileName
,
mimeType
:
'
application/json
'
},
{
subjectType
:
'
drag-n-drop
'
}
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
{
fileContent
,
fileName
,
mimeType
:
'
application/json
'
}
)
})
cy
.
wait
(
300
)
...
...
@@ -96,10 +94,7 @@ describe('Upload page tests', () => {
{
fileName
:
'
txt9.txt
'
,
fileContent
:
txtFile
,
mimeType
:
'
text/plain
'
},
{
fileName
:
'
txt10.txt
'
,
fileContent
:
txtFile
,
mimeType
:
'
text/plain
'
},
]
cy
.
get
(
'
.uppy-Dashboard-dropFilesTitle
'
).
upload
(
files
,
{
subjectType
:
'
drag-n-drop
'
}
)
cy
.
get
(
'
.uppy-Dashboard-input
'
).
upload
(
files
)
})
cy
.
wait
(
300
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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