mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
Merge pull request #3079 from benjiwheeler/add-join-test
added test to check that join window shows scratchr2 join flow
This commit is contained in:
commit
35bcb8b33e
1 changed files with 30 additions and 0 deletions
30
test/integration/smoke-testing/test-join.js
Normal file
30
test/integration/smoke-testing/test-join.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
const SeleniumHelper = require('../selenium-helpers.js');
|
||||
const helper = new SeleniumHelper();
|
||||
|
||||
var tap = require('tap');
|
||||
const test = tap.test;
|
||||
|
||||
const driver = helper.buildDriver('www-smoke test-login-failures');
|
||||
|
||||
const {
|
||||
clickText,
|
||||
findByXpath
|
||||
} = helper;
|
||||
|
||||
var rootUrl = process.env.ROOT_URL || 'https://scratch.ly';
|
||||
|
||||
tap.plan(1);
|
||||
|
||||
tap.tearDown(function () {
|
||||
driver.quit();
|
||||
});
|
||||
|
||||
tap.beforeEach(function () {
|
||||
return driver.get(rootUrl);
|
||||
});
|
||||
|
||||
test('Clicking Join Scratch opens scratchr2 iframe', t => {
|
||||
clickText('Join Scratch')
|
||||
.then(() => findByXpath('//iframe[contains(@class, "mod-registration")]'))
|
||||
.then(() => t.end());
|
||||
});
|
Loading…
Reference in a new issue