mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(e2e-test): wrap the test registration
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
const webdriver = require('selenium-webdriver');
|
||||
const driver = new webdriver.Builder().forBrowser('chrome').build();
|
||||
const By = webdriver.By;
|
||||
const until = webdriver.until;
|
||||
|
||||
const register = require('../../../../scripts/register-e2e-test');
|
||||
|
||||
describe('button: basic', () => {
|
||||
after(() => {
|
||||
return driver.quit();
|
||||
});
|
||||
|
||||
it('navigates', () => {
|
||||
register('navigates', (driver) => {
|
||||
return driver.navigate().to('http://localhost:3333/src/components/button/test/basic.html');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
const webdriver = require('selenium-webdriver');
|
||||
const driver = new webdriver.Builder().forBrowser('chrome').build();
|
||||
const By = webdriver.By;
|
||||
const until = webdriver.until;
|
||||
|
||||
const register = require('../../../../scripts/register-e2e-test');
|
||||
|
||||
describe('button: toolbar', () => {
|
||||
after(() => {
|
||||
return driver.quit();
|
||||
});
|
||||
|
||||
it('navigates', () => {
|
||||
register('navigates', (driver) => {
|
||||
return driver.navigate().to('http://localhost:3333/src/components/button/test/toolbar.html');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user