Sha256: bf2e7572dcb1359c9ebb529469696a04a2ac8641082fd7b6f9d7d3bccd717487

Contents?: true

Size: 487 Bytes

Versions: 16

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

module Spree
  describe "Countries", type: :feature do
    stub_authorization!

    it "deletes a state", js: true do
      visit spree.admin_countries_path
      click_link "New Country"

      fill_in "Name", with: "Brazil"
      fill_in "Iso Name", with: "BRL"
      click_button "Create"

      accept_alert do
        click_icon :delete
      end

      wait_for_ajax

      expect { Country.find(country.id) }.to raise_error(StandardError)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-3.3.0.rc1 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.5 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.2.1 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.2.0 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.4 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.2.0.rc3 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.2.0.rc2 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.2.0.rc1 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.3 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.2 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.1 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.0 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.0.rc4 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.0.rc3 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.0.rc2 spec/features/admin/configuration/countries_spec.rb
spree_backend-3.1.0.rc1 spec/features/admin/configuration/countries_spec.rb