Skip to content
Snippets Groups Projects
Commit 8dfdb342 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add more interesting green flag test

parent 406230d1
Branches
No related tags found
No related merge requests found
/* eslint-env jest */ /* eslint-env jest */
/* globals Promise */
import path from 'path'; import path from 'path';
import { import {
clickText, clickText,
...@@ -59,10 +61,11 @@ describe('costumes, sounds and variables', () => { ...@@ -59,10 +61,11 @@ describe('costumes, sounds and variables', () => {
}); });
test('Load a project by ID', () => { test('Load a project by ID', () => {
// @todo choose a more interesting project? const projectId = '96708228';
const projectId = '168754184';
return driver.get('file://' + uri + '#' + projectId) return driver.get('file://' + uri + '#' + projectId)
.then(() => new Promise(resolve => setTimeout(resolve, 2000)))
.then(() => clickXpath('//img[@title="Go"]')) .then(() => clickXpath('//img[@title="Go"]'))
.then(() => new Promise(resolve => setTimeout(resolve, 2000)))
.then(() => clickXpath('//img[@title="Stop"]')) .then(() => clickXpath('//img[@title="Stop"]'))
.then(() => getLogs(errorWhitelist)) .then(() => getLogs(errorWhitelist))
.then(logs => expect(logs).toEqual([])); .then(logs => expect(logs).toEqual([]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment