Merge pull request #1111 from paulkaplan/default-variable

Add default "count" variable
This commit is contained in:
Paul Kaplan authored and GitHub committed 2017-12-21 15:01:31 -05:00
commit 02c1c7fc8e
2 files changed
+10

No files matched your search

+5
View File
@@ -21,6 +21,11 @@
"penLayerID": -1,
"tempoBPM": 60,
"videoAlpha": 0.5,
"variables": [{
"name": "count",
"isPersistent": false,
"value": 0
}],
"children": [{
"objName": "Sprite1",
"sounds": [{
+5
View File
@@ -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');