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

Fix tests

parent da718637
Branches
Tags
No related merge requests found
......@@ -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 () => {
......
......@@ -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")]');
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment