diff --git a/packages/selenium-ide/src/api/v1/index.js b/packages/selenium-ide/src/api/v1/index.js index bf8afa04c..5b4719728 100644 --- a/packages/selenium-ide/src/api/v1/index.js +++ b/packages/selenium-ide/src/api/v1/index.js @@ -27,7 +27,8 @@ import popupRouter from './popup' import UiState from '../../neo/stores/view/UiState' import WindowSession from '../../neo/IO/window-session' import ModalState from '../../neo/stores/view/ModalState' -import { loadJSProject } from '../../neo/IO/filesystem' +import { loadJSProject, } from '../../neo/IO/filesystem' +import { migrateTestCase, } from '../../neo/IO/legacy/migrate' import manager from '../../plugin/manager' const router = new Router() @@ -220,6 +221,12 @@ router.post('/project', (req, res) => { }) }) +router.get('/migrate', (req, res) => { + controlledOnly(req, res).then(() => { + res (migrateTestCase(req.contents)) + }) +}) + router.use('/playback', playbackRouter) router.use('/record', recordRouter) router.use('/export', exportRouter) diff --git a/packages/selenium-ide/src/manifest.json b/packages/selenium-ide/src/manifest.json index e8b692868..f98fb7226 100644 --- a/packages/selenium-ide/src/manifest.json +++ b/packages/selenium-ide/src/manifest.json @@ -5,7 +5,12 @@ "version": "3.16.1", "version_name": "3.16.1", "homepage_url": "https://github.com/SeleniumHQ/selenium-ide", - "icons": { + "browser_specific_settings": { + "gecko": { + "id": "selenium-ide@github.com" + } + }, + "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "64": "icons/icon64.png", @@ -18,7 +23,7 @@ "64": "icons/icon_menu64.png" }, "default_title": "Selenium IDE" - }, + }, "permissions": [ "tabs", "activeTab", diff --git a/packages/selenium-ide/src/neo/containers/Panel/index.jsx b/packages/selenium-ide/src/neo/containers/Panel/index.jsx index 656ae033f..81483c198 100644 --- a/packages/selenium-ide/src/neo/containers/Panel/index.jsx +++ b/packages/selenium-ide/src/neo/containers/Panel/index.jsx @@ -369,7 +369,7 @@ export default class Panel extends React.Component { + /> diff --git a/packages/selenium-ide/webpack.config.babel.js b/packages/selenium-ide/webpack.config.babel.js index cf4f5070b..ceb74d49c 100644 --- a/packages/selenium-ide/webpack.config.babel.js +++ b/packages/selenium-ide/webpack.config.babel.js @@ -24,6 +24,8 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const autoprefixer = require('autoprefixer') const isProduction = process.env.NODE_ENV === 'production' +//const isProduction = true +console.log ('--> production ' + isProduction + ' <--'); module.exports = { context: path.resolve(__dirname, 'src'),