Skip to content
Snippets Groups Projects
Commit 59f42890 authored by Ben Wheeler's avatar Ben Wheeler
Browse files

update menu-bar test per refactor

parent 48245be3
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ describe('Menu bar settings', () => {
test('User is not warned before uploading project file over a fresh project', async () => {
await loadUri(uri);
await clickText('File');
await clickText('Load from your computer');
const input = await findByXpath('//input[@accept=".sb,.sb2,.sb3"]');
await input.sendKeys(path.resolve(__dirname, '../fixtures/project1.sb3'));
// No replace alert since no changes were made
......@@ -89,6 +90,7 @@ describe('Menu bar settings', () => {
await clickText('delete', scope.spriteTile);
await clickText('File');
await clickText('Load from your computer');
const input = await findByXpath('//input[@accept=".sb,.sb2,.sb3"]');
await input.sendKeys(path.resolve(__dirname, '../fixtures/project1.sb3'));
await driver.switchTo().alert()
......
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