-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5719 from SuperGoodSoft/feature/solidus_admin/add…
…-new-shipping-method-page-action Show the page action for creating a new shipping method
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
describe "Shipping Methods", :js, type: :feature do | ||
before { sign_in create(:admin_user, email: '[email protected]') } | ||
|
||
it "lists tax categories and allows deleting them" do | ||
it "lists shipping methods and allows deleting them" do | ||
create(:shipping_method, name: "FAAAST") | ||
|
||
visit "/admin/shipping_methods" | ||
|
@@ -14,9 +14,17 @@ | |
|
||
select_row("FAAAST") | ||
click_on "Delete" | ||
|
||
expect(page).to have_content("Shipping methods were successfully removed.") | ||
expect(page).not_to have_content("FAAAST") | ||
expect(Spree::ShippingMethod.count).to eq(0) | ||
expect(page).to be_axe_clean | ||
end | ||
|
||
it "shows the link for creating a new shipping method" do | ||
visit "/admin/shipping_methods" | ||
|
||
expect(page).to have_content("Add new") | ||
expect(page).to have_selector(:css, 'a[href="/admin/shipping_methods/new"]') | ||
end | ||
end |