Sha256: 938e9f29436544ee6f5e808798efc5481549cae28014ff5f0e07ebfe0401eac1

Contents?: true

Size: 487 Bytes

Versions: 70

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

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

70 entries across 70 versions & 1 rubygems

Version Path
react_on_rails-10.1.3 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-10.1.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-10.1.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-10.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-10.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-10.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.3 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.2 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.1 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.rc.0 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.12 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.11 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.10 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.9 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.8 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.7 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.6 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.5 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
react_on_rails-9.0.0.beta.4 lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb