tweak tweak

This commit is contained in:
zmagod 2017-10-11 15:20:03 +02:00
parent 9e2b589e4b
commit abe0b8adcc
3 changed files with 13 additions and 8 deletions

View file

@ -5,7 +5,7 @@
{
"modules": false,
"targets": {
"browsers": "last 2 versions",
"browsers": ["last 2 versions"],
"uglify": true
},
"useBuiltIns": true
@ -29,9 +29,6 @@
"env": {
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
},
"development": {
"plugins": ["transform-es2015-modules-commonjs"]
}
}
}

View file

@ -343,6 +343,7 @@ class InputEnabled extends Component {
if (inputType === "file") {
return (
<FormControl
id="user_avatar"
type={this.props.inputType}
onChange={this.handleChange}
onKeyPress={this.handleKeyPress}

View file

@ -10,13 +10,20 @@ require 'capybara/poltergeist'
require 'simplecov'
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app,
js_errors: true,
phantomjs: Phantomjs.path)
Capybara::Poltergeist::Driver.new(
app,
js_errors: true,
phantomjs_options: ['--ignore-ssl-errors=yes', '--ssl-protocol=any'],
debug: true,
timeout: 500,
phantomjs: File.absolute_path(Phantomjs.path)
)
end
Capybara.javascript_driver = :poltergeist
Capybara.default_max_wait_time = 5
Capybara.server_port = 3001
# Capybara defaults to CSS3 selectors rather than XPath.
# If you'd prefer to use XPath, just uncomment this line and adjust any
# selectors in your step definitions to use the XPath syntax.