mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00

This is mostly PoC code that shows how this can be done. This will grow into the actual test runner.
19 lines
548 B
JavaScript
19 lines
548 B
JavaScript
const path = require('path');
|
|
const server = require('@stencil/dev-server/dist'); // TODO: fix after stencil-dev-server PR #16 is merged
|
|
|
|
const webdriver = require('selenium-webdriver');
|
|
const driver = new webdriver.Builder().forBrowser('chrome').build();
|
|
|
|
cmdArgs = [
|
|
'--config', path.join(__dirname, '../stencil.config.js'),
|
|
'--no-open'
|
|
];
|
|
|
|
(async () => {
|
|
const devServer = await server.run(cmdArgs);
|
|
await driver.navigate().to('http://localhost:3333/src/components/button/test/basic.html');
|
|
driver.close();
|
|
devServer.close();
|
|
})();
|
|
|