Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
logging-scratch-gui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
David Goessmann
logging-scratch-gui
Commits
d1cf79ec
Commit
d1cf79ec
authored
5 years ago
by
adroitwhiz
Browse files
Options
Downloads
Patches
Plain Diff
add unit test for .bmp uploads
parent
146500f9
Branches
Branches containing commit
Tags
0.1.0-prerelease.20190718181300
Tags containing commit
1 merge request
!1
Synching Fork
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/fixtures/bmpfile.bmp
+0
-0
0 additions, 0 deletions
test/fixtures/bmpfile.bmp
test/integration/costumes.test.js
+14
-0
14 additions, 0 deletions
test/integration/costumes.test.js
with
14 additions
and
0 deletions
test/fixtures/bmpfile.bmp
0 → 100644
+
0
−
0
View file @
d1cf79ec
29.4 KiB
This diff is collapsed.
Click to expand it.
test/integration/costumes.test.js
+
14
−
0
View file @
d1cf79ec
...
@@ -148,6 +148,20 @@ describe('Working with costumes', () => {
...
@@ -148,6 +148,20 @@ describe('Working with costumes', () => {
await
expect
(
logs
).
toEqual
([]);
await
expect
(
logs
).
toEqual
([]);
});
});
test
(
'
Adding a bmp from file
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickText
(
'
Costumes
'
);
const
el
=
await
findByXpath
(
'
//button[@aria-label="Choose a Costume"]
'
);
await
driver
.
actions
().
mouseMove
(
el
)
.
perform
();
await
driver
.
sleep
(
500
);
// Wait for thermometer menu to come up
const
input
=
await
findByXpath
(
'
//input[@type="file"]
'
);
await
input
.
sendKeys
(
path
.
resolve
(
__dirname
,
'
../fixtures/bmpfile.bmp
'
));
await
clickText
(
'
bmpfile
'
,
scope
.
costumesTab
);
const
logs
=
await
getLogs
();
await
expect
(
logs
).
toEqual
([]);
});
test
(
'
Adding several costumes with a gif
'
,
async
()
=>
{
test
(
'
Adding several costumes with a gif
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
loadUri
(
uri
);
await
clickText
(
'
Costumes
'
);
await
clickText
(
'
Costumes
'
);
...
...
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