Tag: angularjs capybara

Capybara webkit不会从有角度传递params

我正在尝试将selenium测试套件移植到capybara-webkit。 Rails应用程序在rails视图中嵌入了一个角度应用程序,并且与webkit行为不符合预期。 像这样的测试: 需要’spec_helper’ feature ‘Editing company profiles’ do before do @user = create(:employee) @company = Company.find(@user.employer.id) sign_in_as! @user end scenario ‘successfully’, js: true do click_link ‘Dashboard’ click_link @company.name click_button ‘Edit’ fill_in ‘company_name’, with: ‘new name’ click_button ‘Save’ expect(page).to have_content “Your company profile has been updated!” end end 会在selenium中没有问题,但是使用webkit我会收到错误 Failure/Error: Unable to find matching line […]