From a8f7c6b0fe3172354db6f4b66e98048984061d61 Mon Sep 17 00:00:00 2001 From: chrisgarrity <chrisg@media.mit.edu> Date: Wed, 28 Nov 2018 09:04:12 -0500 Subject: [PATCH] Fix tests --- test/integration/menu-bar.test.js | 8 ++++---- test/integration/tutorials-shortcut.test.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/menu-bar.test.js b/test/integration/menu-bar.test.js index ca1a4308b..b1c3d9fc0 100644 --- a/test/integration/menu-bar.test.js +++ b/test/integration/menu-bar.test.js @@ -31,24 +31,24 @@ describe('Menu bar settings', () => { await findByXpath('//*[li[span[text()="New"]] and not(@data-tip="tooltip")]'); }); - test('File->Upload should be enabled', async () => { + test('File->Load should be enabled', async () => { await loadUri(uri); await clickXpath('//button[@title="Try It"]'); await clickXpath( '//div[contains(@class, "menu-bar_menu-bar-item") and ' + 'contains(@class, "menu-bar_hoverable")][span[text()="File"]]' ); - await findByXpath('//*[li[span[text()="Upload from your computer"]] and not(@data-tip="tooltip")]'); + await findByXpath('//*[li[span[text()="Load from your computer"]] and not(@data-tip="tooltip")]'); }); - test('File->Download should be enabled', async () => { + test('File->Save should be enabled', async () => { await loadUri(uri); await clickXpath('//button[@title="Try It"]'); await clickXpath( '//div[contains(@class, "menu-bar_menu-bar-item") and ' + 'contains(@class, "menu-bar_hoverable")][span[text()="File"]]' ); - await findByXpath('//*[li[span[text()="Download to your computer"]] and not(@data-tip="tooltip")]'); + await findByXpath('//*[li[span[text()="Save to your computer"]] and not(@data-tip="tooltip")]'); }); test('Share button should NOT be enabled', async () => { diff --git a/test/integration/tutorials-shortcut.test.js b/test/integration/tutorials-shortcut.test.js index 803e1e5ae..21d3384a0 100644 --- a/test/integration/tutorials-shortcut.test.js +++ b/test/integration/tutorials-shortcut.test.js @@ -24,7 +24,7 @@ describe('Working with shortcut to Tutorials library', () => { test('opens with the Tutorial Library showing', async () => { await loadUri(uri); // make sure there is a tutorial visible that doesn't have a shortcut - await clickText('Switch costume'); + await clickText('Make It Spin'); await findByXpath('//div[contains(@class, "step-video")]'); }); -- GitLab