Sha256: b2d32baed96e13eee85224399e996175d4a694dd1c18f187eaf0b7d01be57150

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

require 'rails_helper'

RSpec.feature 'Nodes management: ', type: :feature do

  before do
    login
  end

  scenario 'Shows right empty listing' do
    # right path
    expect(url).to end_with '/nodes'
    # right translation
    expect(h1.text).to have_text I18n.t(:nodes)
    # right css
    expect(table = table(class: 'nodes-list')).to be_present
    expect(create = a(class: 'nodes-action')).to be_present
    expect(sort = a(class: 'nodes-sort-action')).to be_present
    # right images - 'create.png' is visible.
    image = create.img
    expect(image).to be_present
    expect(image.src).to end_with '.png'
    expect(image.width).to eq 20
  end

  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nodes-0.2.4 spec/features/nodes_spec.rb