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

Add an integration test to cover renaming costumes updating the blocks

It looks like an "test.only" was left in on one of these tests by mistake.
parent 0d32ac5b
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ describe('Working with the blocks', () => {
await expect(logs).toEqual([]);
});
test.only('Record option from sound block menu opens sound recorder', async () => {
test('Record option from sound block menu opens sound recorder', async () => {
await loadUri(uri);
await clickXpath('//button[@title="Try It"]');
await clickText('Code');
......@@ -174,4 +174,20 @@ describe('Working with the blocks', () => {
const logs = await getLogs();
await expect(logs).toEqual([]);
});
test('Renaming costume changes the default costume name in the toolbox', async () => {
await loadUri(uri);
await clickXpath('//button[@title="Try It"]');
// Rename the costume
await clickText('Costumes');
const el = await findByXpath("//input[@value='costume1']");
await el.sendKeys('newname');
// Make sure it is updated in the block menu
await clickText('Code');
await clickText('Looks', scope.blocksTab);
await driver.sleep(500); // Wait for scroll to finish
await clickText('newname', scope.blocksTab);
});
});
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