Skip to content
Snippets Groups Projects
Commit a8f7c6b0 authored by chrisgarrity's avatar chrisgarrity
Browse files

Fix tests

parent da718637
No related branches found
No related tags found
No related merge requests found
...@@ -31,24 +31,24 @@ describe('Menu bar settings', () => { ...@@ -31,24 +31,24 @@ describe('Menu bar settings', () => {
await findByXpath('//*[li[span[text()="New"]] and not(@data-tip="tooltip")]'); 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 loadUri(uri);
await clickXpath('//button[@title="Try It"]'); await clickXpath('//button[@title="Try It"]');
await clickXpath( await clickXpath(
'//div[contains(@class, "menu-bar_menu-bar-item") and ' + '//div[contains(@class, "menu-bar_menu-bar-item") and ' +
'contains(@class, "menu-bar_hoverable")][span[text()="File"]]' '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 loadUri(uri);
await clickXpath('//button[@title="Try It"]'); await clickXpath('//button[@title="Try It"]');
await clickXpath( await clickXpath(
'//div[contains(@class, "menu-bar_menu-bar-item") and ' + '//div[contains(@class, "menu-bar_menu-bar-item") and ' +
'contains(@class, "menu-bar_hoverable")][span[text()="File"]]' '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 () => { test('Share button should NOT be enabled', async () => {
......
...@@ -24,7 +24,7 @@ describe('Working with shortcut to Tutorials library', () => { ...@@ -24,7 +24,7 @@ describe('Working with shortcut to Tutorials library', () => {
test('opens with the Tutorial Library showing', async () => { test('opens with the Tutorial Library showing', async () => {
await loadUri(uri); await loadUri(uri);
// make sure there is a tutorial visible that doesn't have a shortcut // 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")]'); await findByXpath('//div[contains(@class, "step-video")]');
}); });
......
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