From c6bc51c707c13705b0d3e308e09975bbb31e75ae Mon Sep 17 00:00:00 2001 From: Victor Fierro Date: Fri, 8 Apr 2016 16:24:57 -0700 Subject: [PATCH] Minor refactor in test folder structure --- package.json | 2 +- .../acceptance}/features/add_weather_cards_in_dashboard.feature | 0 .../acceptance}/step_definitions/given/i_see_the_dashboard.js | 0 .../acceptance}/step_definitions/hooks/prepare_webdriver.js | 2 +- ...there_is_a_new_weather_card_with_x_title_in_the_dashboard.js | 0 .../acceptance}/step_definitions/when/i_click_x_button.js | 0 .../step_definitions/when/i_write_x_in_the_x_input.js | 0 {test-acceptance => test/acceptance}/wdio.cucumber.conf.js | 0 {test-acceptance => test/acceptance}/wdio.js | 0 9 files changed, 2 insertions(+), 2 deletions(-) rename {test-acceptance => test/acceptance}/features/add_weather_cards_in_dashboard.feature (100%) rename {test-acceptance => test/acceptance}/step_definitions/given/i_see_the_dashboard.js (100%) rename {test-acceptance => test/acceptance}/step_definitions/hooks/prepare_webdriver.js (96%) rename {test-acceptance => test/acceptance}/step_definitions/then/there_is_a_new_weather_card_with_x_title_in_the_dashboard.js (100%) rename {test-acceptance => test/acceptance}/step_definitions/when/i_click_x_button.js (100%) rename {test-acceptance => test/acceptance}/step_definitions/when/i_write_x_in_the_x_input.js (100%) rename {test-acceptance => test/acceptance}/wdio.cucumber.conf.js (100%) rename {test-acceptance => test/acceptance}/wdio.js (100%) diff --git a/package.json b/package.json index 2021673..cc4d428 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dev-server": "NODE_ENV=development node devServer.js", "pro": "NODE_ENV=production node proServer.js", "selenium-server": "selenium-standalone start", - "test-acceptance": "cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=test babel-node ./node_modules/.bin/cucumber-js test-acceptance/features -r test-acceptance/step_definitions --format pretty --strict" + "test-acceptance": "cross-env BABEL_DISABLE_CACHE=1 NODE_ENV=test babel-node ./node_modules/.bin/cucumber-js test/acceptance/features -r test/acceptance/step_definitions --format pretty --strict" }, "repository": { "type": "git", diff --git a/test-acceptance/features/add_weather_cards_in_dashboard.feature b/test/acceptance/features/add_weather_cards_in_dashboard.feature similarity index 100% rename from test-acceptance/features/add_weather_cards_in_dashboard.feature rename to test/acceptance/features/add_weather_cards_in_dashboard.feature diff --git a/test-acceptance/step_definitions/given/i_see_the_dashboard.js b/test/acceptance/step_definitions/given/i_see_the_dashboard.js similarity index 100% rename from test-acceptance/step_definitions/given/i_see_the_dashboard.js rename to test/acceptance/step_definitions/given/i_see_the_dashboard.js diff --git a/test-acceptance/step_definitions/hooks/prepare_webdriver.js b/test/acceptance/step_definitions/hooks/prepare_webdriver.js similarity index 96% rename from test-acceptance/step_definitions/hooks/prepare_webdriver.js rename to test/acceptance/step_definitions/hooks/prepare_webdriver.js index 1006db6..293c523 100644 --- a/test-acceptance/step_definitions/hooks/prepare_webdriver.js +++ b/test/acceptance/step_definitions/hooks/prepare_webdriver.js @@ -3,7 +3,7 @@ import * as wdio from 'webdriverio'; module.exports = function hooks() { this.Before((scenario, done) => { this.world = {}; - this.world.driver = wdio.remote( require('../../wdio.cucumber.conf') ); + this.world.driver = wdio.remote( require('../../wdio.cucumber.conf.js') ); this.world.driver.init().then(()=>done()).catch(done); }); diff --git a/test-acceptance/step_definitions/then/there_is_a_new_weather_card_with_x_title_in_the_dashboard.js b/test/acceptance/step_definitions/then/there_is_a_new_weather_card_with_x_title_in_the_dashboard.js similarity index 100% rename from test-acceptance/step_definitions/then/there_is_a_new_weather_card_with_x_title_in_the_dashboard.js rename to test/acceptance/step_definitions/then/there_is_a_new_weather_card_with_x_title_in_the_dashboard.js diff --git a/test-acceptance/step_definitions/when/i_click_x_button.js b/test/acceptance/step_definitions/when/i_click_x_button.js similarity index 100% rename from test-acceptance/step_definitions/when/i_click_x_button.js rename to test/acceptance/step_definitions/when/i_click_x_button.js diff --git a/test-acceptance/step_definitions/when/i_write_x_in_the_x_input.js b/test/acceptance/step_definitions/when/i_write_x_in_the_x_input.js similarity index 100% rename from test-acceptance/step_definitions/when/i_write_x_in_the_x_input.js rename to test/acceptance/step_definitions/when/i_write_x_in_the_x_input.js diff --git a/test-acceptance/wdio.cucumber.conf.js b/test/acceptance/wdio.cucumber.conf.js similarity index 100% rename from test-acceptance/wdio.cucumber.conf.js rename to test/acceptance/wdio.cucumber.conf.js diff --git a/test-acceptance/wdio.js b/test/acceptance/wdio.js similarity index 100% rename from test-acceptance/wdio.js rename to test/acceptance/wdio.js