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
2ded72b2
Commit
2ded72b2
authored
6 years ago
by
Paul Kaplan
Browse files
Options
Downloads
Patches
Plain Diff
Add an integration test for surprise sounds
parent
2aa0e8d9
No related branches found
Branches containing commit
No related tags found
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
+14
-1
14 additions, 1 deletion
test/integration/sounds.test.js
with
14 additions
and
1 deletion
test/integration/sounds.test.js
+
14
−
1
View file @
2ded72b2
...
...
@@ -25,7 +25,7 @@ describe('Working with sounds', () => {
await
driver
.
quit
();
});
test
(
'
Adding a sound
'
,
async
()
=>
{
test
(
'
Adding a sound
through the library
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickXpath
(
'
//button[@title="tryit"]
'
);
await
clickText
(
'
Sounds
'
);
...
...
@@ -63,6 +63,19 @@ describe('Working with sounds', () => {
await
expect
(
logs
).
toEqual
([]);
});
test
(
'
Adding a sound by surprise button
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickXpath
(
'
//button[@title="tryit"]
'
);
await
clickText
(
'
Sounds
'
);
const
el
=
await
findByXpath
(
'
//button[@aria-label="Choose a Sound"]
'
);
await
driver
.
actions
().
mouseMove
(
el
)
.
perform
();
await
driver
.
sleep
(
500
);
// Wait for thermometer menu to come up
await
clickXpath
(
'
//button[@aria-label="Surprise"]
'
);
const
logs
=
await
getLogs
();
await
expect
(
logs
).
toEqual
([]);
});
test
(
'
Duplicating a sound
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickXpath
(
'
//button[@title="tryit"]
'
);
...
...
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