Sha256: 17c61b6794305c59a35dc2684c4a9a20254e59dd29c9b0ccc17c6c90b86ee3bb

Contents?: true

Size: 1017 Bytes

Versions: 92

Compression:

Stored size: 1017 Bytes

Contents

require 'spec_helper'

feature 'Standard Flow', organization_workspace: :test do
  let(:haskell) { create(:haskell) }

  let!(:chapter) {
    create(:chapter, name: 'Functional Programming', lessons: [
        create(:lesson, name: 'Values and Functions', language: haskell, description: 'Values are everywhere...', exercises: [
            create(:exercise, name: 'The Basic Values', description: "Let's say we want to declare a variable...")
        ])
    ]) }

  before { reindex_current_organization! }

  before do
    visit '/'
  end

  scenario 'do an exercise for first time, starting from home' do
    expect(page).to have_text('Functional Programming')

    click_on 'Start Practicing!'

    expect(page).to have_text('Values and Functions')
    expect(page).to have_text('Values are everywhere...')
    expect(page).to have_text('Exercises')
    expect(page).to have_text('The Basic Values')
    expect(page).to have_text('Start this lesson!')
    expect(page).to_not have_text("Let's say we")
  end

end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.22.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.21.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.20.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.20.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.19.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.18.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.18.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.17.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.16.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.15.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.14.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.14.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.13.2 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.13.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.13.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.12.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.12.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.11.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-9.10.0 spec/features/standard_flow_spec.rb