Skip to content
Snippets Groups Projects
Commit ebf2a2a6 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Change category name from "Data" to "Variables"

parent f7258077
No related branches found
No related tags found
No related merge requests found
......@@ -641,9 +641,9 @@ const operators = function () {
`;
};
const data = function () {
const variables = function () {
return `
<category name="Data" colour="#FF8C1A" secondaryColour="#DB6E00" custom="VARIABLE">
<category name="Variables" colour="#FF8C1A" secondaryColour="#DB6E00" custom="VARIABLE">
</category>
`;
};
......@@ -676,7 +676,7 @@ const makeToolboxXML = function (isStage, targetId, categoriesXML) {
control(isStage, targetId), gap,
sensing(isStage, targetId), gap,
operators(isStage, targetId), gap,
data(isStage, targetId), gap,
variables(isStage, targetId), gap,
myBlocks(isStage, targetId)
];
......
......@@ -72,7 +72,7 @@ describe('blocks example', () => {
await clickText('Control');
await clickText('Sensing');
await clickText('Operators');
await clickText('Data');
await clickText('Variables');
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
await clickText('Create variable...');
let el = await findByXpath("//input[@placeholder='']");
......
......@@ -159,7 +159,7 @@ describe('costumes, sounds and variables', () => {
test('Creating variables', async () => {
await loadUri(uri);
await clickText('Blocks');
await clickText('Data', blocksTabScope);
await clickText('Variables', blocksTabScope);
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
await clickText('Create variable...');
let el = await findByXpath("//input[@placeholder='']");
......@@ -171,7 +171,7 @@ describe('costumes, sounds and variables', () => {
await clickButton('OK');
// Make sure reporting works on a new variable
await clickText('Data', blocksTabScope);
await clickText('Variables', blocksTabScope);
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
await clickText('score', blocksTabScope);
await findByText('0', reportedValueScope); // Tooltip with result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment