1

I want to disable javascript for a rspec test.

Ex

it '[SP01/UC18/TC25] title error for 31 letters' do

  #=> Disable javascript (because text box is already validated by JS to max input 30     characters)
     fill_in('title', :with => 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
  #=> Enable javascript (because I want to track the error messages)
     click_button 'submit'
     page.should have_content 'error in title'
     page.should have_content 'please enter less than 30 characters'

end

1 Answer 1

1

Here is the answer

describe '[SP01/UC25] title error for 31 letters', :js => false, :type => :request do
end
Sign up to request clarification or add additional context in comments.

1 Comment

Hope this will help to someone

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.