mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- Bulk changes to self-tests definitions. Now we go into each one to see what's failing and what's not.
34 lines
956 B
JavaScript
34 lines
956 B
JavaScript
var selftest = require('../tool-testing/selftest.js');
|
|
var Sandbox = selftest.Sandbox;
|
|
|
|
selftest.define('regressions - web.browser.legacy', async function() {
|
|
const s = new Sandbox();
|
|
await s.init();
|
|
|
|
// Make sure we use the right "env" section of .babelrc.
|
|
s.set('NODE_ENV', 'development');
|
|
|
|
// For meteortesting:mocha to work we must set test browser driver
|
|
// See https://github.com/meteortesting/meteor-mocha
|
|
s.set('TEST_BROWSER_DRIVER', 'puppeteer');
|
|
|
|
await s.createApp('modules-test-app', 'ecmascript-regression');
|
|
await s.cd('modules-test-app', async function() {
|
|
const run = s.run(
|
|
'test',
|
|
'--once',
|
|
'--full-app',
|
|
'--driver-package',
|
|
'meteortesting:mocha',
|
|
'--exclude-archs',
|
|
'web.browser'
|
|
);
|
|
|
|
run.waitSecs(60);
|
|
await run.match('App running at');
|
|
await run.match('SERVER FAILURES: 0');
|
|
await run.match('CLIENT FAILURES: 0');
|
|
await run.expectExit(0);
|
|
});
|
|
});
|