Merge pull request #1111 from paulkaplan/default-variable
Add default "count" variable
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -21,6 +21,11 @@
|
||||
"penLayerID": -1,
|
||||
"tempoBPM": 60,
|
||||
"videoAlpha": 0.5,
|
||||
"variables": [{
|
||||
"name": "count",
|
||||
"isPersistent": false,
|
||||
"value": 0
|
||||
}],
|
||||
"children": [{
|
||||
"objName": "Sprite1",
|
||||
"sounds": [{
|
||||
|
||||
@@ -161,6 +161,11 @@ describe('costumes, sounds and variables', () => {
|
||||
await clickText('Blocks');
|
||||
await clickText('Variables', blocksTabScope);
|
||||
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
|
||||
|
||||
// Expect a default variable "count" to be visible
|
||||
await clickText('count', blocksTabScope);
|
||||
await findByText('0', reportedValueScope);
|
||||
|
||||
await clickText('Make a Variable');
|
||||
let el = await findByXpath("//input[@placeholder='']");
|
||||
await el.sendKeys('score');
|
||||
|
||||
Reference in new issue
Block a user