mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 09:13:46 +08:00
tweak tweak
This commit is contained in:
parent
9e2b589e4b
commit
abe0b8adcc
3 changed files with 13 additions and 8 deletions
5
.babelrc
5
.babelrc
|
@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue