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
79fe377f
Commit
79fe377f
authored
5 years ago
by
Paul Kaplan
Browse files
Options
Downloads
Patches
Plain Diff
Update integration tests
parent
b2dd3ed4
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/blocks.test.js
+10
-12
10 additions, 12 deletions
test/integration/blocks.test.js
with
10 additions
and
12 deletions
test/integration/blocks.test.js
+
10
−
12
View file @
79fe377f
...
...
@@ -182,7 +182,8 @@ describe('Working with the blocks', () => {
// Rename the costume
await
clickText
(
'
Costumes
'
);
const
el
=
await
findByXpath
(
"
//input[@value='costume1']
"
);
await
clickText
(
'
costume2
'
,
scope
.
costumesTab
);
const
el
=
await
findByXpath
(
"
//input[@value='costume2']
"
);
await
el
.
sendKeys
(
'
newname
'
);
// Make sure it is updated in the block menu
...
...
@@ -197,7 +198,8 @@ describe('Working with the blocks', () => {
// Rename the costume
await
clickText
(
'
Costumes
'
);
const
el
=
await
findByXpath
(
"
//input[@value='costume1']
"
);
await
clickText
(
'
costume2
'
,
scope
.
costumesTab
);
const
el
=
await
findByXpath
(
"
//input[@value='costume2']
"
);
await
el
.
sendKeys
(
'
<NewCostume>
'
);
// Make sure it is updated in the block menu
...
...
@@ -209,9 +211,7 @@ describe('Working with the blocks', () => {
await
clickText
(
'
Sound
'
,
scope
.
blocksTab
);
});
// NOTE: This test describes the current behavior so that changes are not
// introduced inadvertly, but I know this is not the desired behavior
test
(
'
Adding costumes DOES NOT update the default costume name in the toolbox
'
,
async
()
=>
{
test
(
'
Adding costumes DOES update the default costume name in the toolbox
'
,
async
()
=>
{
await
loadUri
(
uri
);
// By default, costume1 is in the costume tab
...
...
@@ -219,7 +219,7 @@ describe('Working with the blocks', () => {
await
driver
.
sleep
(
500
);
// Wait for scroll to finish
await
clickText
(
'
costume1
'
,
scope
.
blocksTab
);
// Also check that adding a new costume does
not
update the list
// Also check that adding a new costume does update the list
await
clickText
(
'
Costumes
'
);
const
el
=
await
findByXpath
(
'
//button[@aria-label="Choose a Costume"]
'
);
await
driver
.
actions
().
mouseMove
(
el
)
...
...
@@ -227,14 +227,12 @@ describe('Working with the blocks', () => {
await
driver
.
sleep
(
500
);
// Wait for thermometer menu to come up
await
clickXpath
(
'
//button[@aria-label="Paint"]
'
);
await
clickText
(
'
costume3
'
,
scope
.
costumesTab
);
// Check that the menu has
not
been updated
// Check that the menu has been updated
await
clickText
(
'
Code
'
);
await
clickText
(
'
costume
1
'
,
scope
.
blocksTab
);
await
clickText
(
'
costume
3
'
,
scope
.
blocksTab
);
});
// NOTE: This test describes the current behavior so that changes are not
// introduced inadvertly, but I know this is not the desired behavior
test
(
'
Adding a sound DOES NOT update the default sound name in the toolbox
'
,
async
()
=>
{
test
(
'
Adding a sound DOES update the default sound name in the toolbox
'
,
async
()
=>
{
await
loadUri
(
uri
);
await
clickText
(
'
Sounds
'
);
await
clickXpath
(
'
//button[@aria-label="Choose a Sound"]
'
);
...
...
@@ -242,7 +240,7 @@ describe('Working with the blocks', () => {
await
clickText
(
'
Code
'
);
await
clickText
(
'
Sound
'
,
scope
.
blocksTab
);
await
driver
.
sleep
(
500
);
// Wait for scroll to finish
await
clickText
(
'
Meow
'
,
scope
.
blocksTab
);
// Meow, not A Bass
await
clickText
(
'
A Bass
'
,
scope
.
blocksTab
);
});
// Regression test for switching between editor/player causing toolbox to stop updating
...
...
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