Skip to content
Snippets Groups Projects
Commit 8a23c463 authored by Luke Schlangen's avatar Luke Schlangen
Browse files

add integration test for not now button

parent 2a7ee983
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ import path from 'path';
import SeleniumHelper from '../helpers/selenium-helper';
const {
clickText,
clickXpath,
getDriver,
getLogs,
......@@ -12,6 +13,15 @@ const uri = path.resolve(__dirname, '../../build/index.html');
let driver;
describe('Loading scratch gui', () => {
test('The "Not Now" button sends you to scratch', async () => {
await loadUri(uri);
await clickText('Not Now');
const currentUrl = await driver.getCurrentUrl();
await expect(currentUrl).toEqual('https://scratch.mit.edu/');
});
});
describe('Loading projects by ID', () => {
beforeAll(() => {
driver = getDriver();
......
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