https://github.com/dougal/capybara-webkit-issue-704
Example app to demonstrate Capybara-Webkit Issue #704
https://github.com/dougal/capybara-webkit-issue-704
Last synced: 2 months ago
JSON representation
Example app to demonstrate Capybara-Webkit Issue #704
- Host: GitHub
- URL: https://github.com/dougal/capybara-webkit-issue-704
- Owner: dougal
- Created: 2015-01-07T20:48:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T16:42:30.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T12:30:32.412Z (8 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Issue is now fixed!
Capybara-Webkit [Issue #704 - `type` property of file field is empty](https://github.com/thoughtbot/capybara-webkit/issues/704)
===================================================================Setup
-----Ruby version is MRI 2.2.0, as described by .ruby-version.
Run bundle install to install dependencies:
bundle install
Running the app manually to see correct response
------------------------------------------------1. Run the server: `bundle exec rackup`
2. Navigate to [http://localhost:9292/](http://localhost:9292/)
3. Select any file using the file field.
4. Click the `Show Type` button.
5. The type of the file will be outputted to the browser's console.
Running Specs
-------------bundle exec rake spec
What's going on?
----------------The app is a single page, which when a file is selected, and the button
clicked, uses JavaScript to output the file's mime type to the browser console.The spec does the same, and reads the browser console to look for the correct
mime type.When run using Capybara-Webkit, the `type` field of the file is returned as an
empty string.