Sha256: d5ba68e7048844ea591cbd36c84ad9aa25633a69153c5c8fdd611f23b2b4e627

Contents?: true

Size: 456 Bytes

Versions: 64

Compression:

Stored size: 456 Bytes

Contents

require_relative "../rails_helper"

feature "Hello World", js: true do
  scenario "the hello world example works" do
    visit "/hello_world"
    expect(heading).to have_text("Hello World")
    expect(message).to have_text("Stranger")
    name_input.set("John Doe")
    expect(message).to have_text("John Doe")
  end
end

private

def name_input
  page.first("input")
end

def message
  page.first(:css, "h3")
end

def heading
  page.first(:css, "h1")
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
react_on_rails-8.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-8.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-8.0.0.beta.3 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-8.0.0.beta.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-8.0.0.beta.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.1.0.beta.3 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.0.4 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.1.0.beta.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.0.3 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.1.0.beta.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-7.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.10.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.10.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.9.3 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.9.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.9.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.9.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-6.8.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb