Skip to content
Snippets Groups Projects
Commit d54320b2 authored by Ray Schamp's avatar Ray Schamp
Browse files

Test that blocks-only can use the blocks palette

parent 4ac3dd68
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,10 @@ import path from 'path';
import SeleniumHelper from '../helpers/selenium-helper';
const {
clickButton,
clickText,
clickXpath,
findByXpath,
getDriver,
getLogs
} = new SeleniumHelper();
......@@ -59,4 +62,26 @@ describe('blocks example', () => {
const logs = await getLogs(errorWhitelist);
await expect(logs).toEqual([]);
});
test('Change categories', async () => {
await driver.get(`file://${uri}`);
await clickText('Looks');
await clickText('Sound');
await clickText('Pen');
await clickText('Events');
await clickText('Control');
await clickText('Sensing');
await clickText('Operators');
await clickText('Data');
await clickText('Create variable...');
let el = await findByXpath("//input[@placeholder='']");
await el.sendKeys('score');
await clickButton('OK');
await clickText('Create variable...');
el = await findByXpath("//input[@placeholder='']");
await el.sendKeys('second variable');
await clickButton('OK');
const logs = await getLogs(errorWhitelist);
await expect(logs).toEqual([]);
});
});
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