capybara
rails routes undefined in rspec before(:all) filter?
I\'m setting up some integration tests using capybara and rspec. In a single test, this works: describe \"SIGN IN, POST post\"开发者_JAVA技巧 do[详细]
2023-03-25 19:41 分类:问答Preventing Capybara from following :method => :delete links
My project is using Rails 3 and RSpec and Capybara for testing. I want to support visitors without javascript, so I\'ve added a \'delete\' member to my resource routes. My non-js links look like /pos[详细]
2023-03-25 18:04 分类:问答Rspec + Capybara : How to click on alert box
I have gone through the post of capybara + click on alert box but nothing seems to be work. Following is my scenario:[详细]
2023-03-25 17:17 分类:问答How do I confirm a javascript popup with Capybara?
I\'ve tried several examples found online, but with no luck.I am looking to confirm the confirm message of a delete link.The last attempt was the code below, but that resulted in an Capybara::NotSuppo[详细]
2023-03-25 11:52 分类:问答Capybara:Webkit unable to find iframe or its content
I allow users to share photos with other individuals.When the user is viewing a photo and its description, they can click on \"share\" and a new page loads.On this page the fill in an email address (a[详细]
2023-03-25 10:03 分类:问答Cucumber and Capybara require different Selenium-Webdriver gem versions - trying to set up test environment
I am relatively new to BDD and have been struggling to get my test environme开发者_高级运维nt set up and stable, and a lot of googling has still failed to surface how to solve this problem.[详细]
2023-03-24 17:30 分类:问答How to test Dialogs in Cucumber?
I am using jquery UI dialogs in Rails. How do you use cucumber to test for opening dialogs? I have a re开发者_StackOverflow社区gistration dialog and after that another confirmation dialog. The latter[详细]
2023-03-24 02:07 分类:问答Capybara/Selenium Capybara::ElementNotFound - when running @javascript
I\'ve been using Cucumber & Capybara for integration testing. Since the site uses a lot of javascript, i set the environment to use selenium as the javascript driver. However, it seems to keep fai[详细]
2023-03-23 22:14 分类:问答how to run capybara sinatra
I was given a sample sinatra project with a hello world for capybara testing in akephalos.I understand the concept by looking at the code, but how do i run it?If I run rackup config.ru, and then go to[详细]
2023-03-23 20:41 分类:问答setting expectation on user instance in integration test with mocha and capybara
So I am trying to ensure that a callback happens on save...My test is: user = create_user login user visit new_post_path[详细]
2023-03-23 15:34 分类:问答