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
6100e0f1
Commit
6100e0f1
authored
5 years ago
by
Eric Rosenbaum
Browse files
Options
Downloads
Patches
Plain Diff
Add integration tests for copy/paste
parent
1563f789
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/integration/sounds.test.js
+25
-0
25 additions, 0 deletions
test/integration/sounds.test.js
with
25 additions
and
0 deletions
test/integration/sounds.test.js
+
25
−
0
View file @
6100e0f1
...
...
@@ -141,4 +141,29 @@ describe('Working with sounds', () => {
const
logs
=
await
getLogs
();
await
expect
(
logs
).
toEqual
([]);
});
test
(
'
Copy and pasting within a sound changes its duration
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickText
(
'
Sounds
'
);
await
findByText
(
'
0.85
'
,
scope
.
soundsTab
);
// Original meow sound duration
await
clickText
(
'
Copy
'
,
scope
.
soundsTab
);
await
clickText
(
'
Paste
'
,
scope
.
soundsTab
);
await
findByText
(
'
1.70
'
,
scope
.
soundsTab
);
// Sound has doubled in duration
const
logs
=
await
getLogs
();
await
expect
(
logs
).
toEqual
([]);
});
test
(
'
Can copy a sound from a sprite and paste into a sound on the stage
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickText
(
'
Sounds
'
);
await
clickText
(
'
Copy
'
,
scope
.
soundsTab
);
// Copy the meow sound
await
clickXpath
(
'
//span[text()="Stage"]
'
);
await
findByText
(
'
0.02
'
,
scope
.
soundsTab
);
// Original pop sound duration
await
clickText
(
'
Paste
'
,
scope
.
soundsTab
);
await
findByText
(
'
0.87
'
,
scope
.
soundsTab
);
// Duration of pop + meow sound
const
logs
=
await
getLogs
();
await
expect
(
logs
).
toEqual
([]);
});
});
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