From 9bef38e977982fa3a03fd5004ccc6da6b8dc3017 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Tue, 12 Feb 2019 08:53:28 -0500 Subject: [PATCH] Remove try-it step from more integration tests --- test/integration/backdrops.test.js | 1 - test/integration/blocks.test.js | 1 - test/integration/localization.test.js | 1 - test/integration/sounds.test.js | 1 - test/integration/sprites.test.js | 1 - 5 files changed, 5 deletions(-) diff --git a/test/integration/backdrops.test.js b/test/integration/backdrops.test.js index 80a4a5650..361574c2f 100644 --- a/test/integration/backdrops.test.js +++ b/test/integration/backdrops.test.js @@ -56,7 +56,6 @@ describe('Working with backdrops', () => { path.resolve(__dirname, '../fixtures/100-100.svg') ]; await loadUri(uri); - await clickXpath('//button[@title="Try It"]'); const buttonXpath = '//button[@aria-label="Choose a Backdrop"]'; const fileXpath = `${buttonXpath}/following-sibling::div//input[@type="file"]`; diff --git a/test/integration/blocks.test.js b/test/integration/blocks.test.js index fe8dfe402..938508111 100644 --- a/test/integration/blocks.test.js +++ b/test/integration/blocks.test.js @@ -185,7 +185,6 @@ describe('Working with the blocks', () => { test('Renaming costume with a special character should not break toolbox', async () => { await loadUri(uri); - await clickXpath('//button[@title="Try It"]'); // Rename the costume await clickText('Costumes'); diff --git a/test/integration/localization.test.js b/test/integration/localization.test.js index d2baa36c0..5c1403658 100644 --- a/test/integration/localization.test.js +++ b/test/integration/localization.test.js @@ -60,7 +60,6 @@ describe('Localization', () => { // Regression test for #4476, blocks in wrong language when loaded with locale test('Loading with locale shows correct blocks', async () => { await loadUri(`${uri}?locale=de`); - await clickXpath('//button[@title="Ausprobieren!"]'); // "Try It" await clickText('Fühlen'); // Sensing category in German await new Promise(resolve => setTimeout(resolve, 1000)); // wait for blocks to scroll await clickText('Antwort'); // Find the "answer" block in German diff --git a/test/integration/sounds.test.js b/test/integration/sounds.test.js index 4dc9fc55c..29ffba49f 100644 --- a/test/integration/sounds.test.js +++ b/test/integration/sounds.test.js @@ -118,7 +118,6 @@ describe('Working with sounds', () => { path.resolve(__dirname, '../fixtures/sneaker.wav') ]; await loadUri(uri); - await clickXpath('//button[@title="Try It"]'); await clickText('Sounds'); const el = await findByXpath('//button[@aria-label="Choose a Sound"]'); await driver.actions().mouseMove(el) diff --git a/test/integration/sprites.test.js b/test/integration/sprites.test.js index d70e75d2c..131fb544c 100644 --- a/test/integration/sprites.test.js +++ b/test/integration/sprites.test.js @@ -156,7 +156,6 @@ describe('Working with sprites', () => { path.resolve(__dirname, '../fixtures/100-100.svg') ]; await loadUri(uri); - await clickXpath('//button[@title="Try It"]'); const el = await findByXpath('//button[@aria-label="Choose a Sprite"]'); await driver.actions().mouseMove(el) .perform(); -- GitLab