我正在尝试测试一个简单的标题复选框,检查表中的所有复选框。scenario 'select all enrolments', js: true do expect(page).to have_css('.enrolment-presentation-listing input[type="checkbox"]:checked', count: 1)但是,如果我将场景稍微更改为
scenario 'select all
我正在试着测试一下通过Devise gem登录后会发生什么。例如,我让控制器在用户成功登录后转到student_dashboard_path。我目前在:require 'rails_helper'
scenario 'successfully from sign in page and sees student dashboard'