Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix a spec test

Matthew Kennedy1abc2c8c87cf
diff --git a/backend/spec/features/admin/orders/listing_spec.rb b/backend/spec/features/admin/orders/listing_spec.rb
index fef22eb8a7..6bff0cad59 100644
--- a/backend/spec/features/admin/orders/listing_spec.rb
+++ b/backend/spec/features/admin/orders/listing_spec.rb
@@ -250,7 +250,6 @@ describe 'Orders Listing', type: :feature do
select2 'spree', from: 'Channel'
fill_in_date_with_js('Starts at', with: '2018/01/01')
fill_in_date_with_js('Ending at', with: '2018/06/30')
-
end
click_on 'Filter Results'
@@ -279,7 +278,6 @@ describe 'Orders Listing', type: :feature do
page.execute_script(script)
end
-
end
end
end
diff --git a/backend/spec/features/admin/products/edit/products_spec.rb b/backend/spec/features/admin/products/edit/products_spec.rb
index 587736cfcb..a6f484f6cc 100644
--- a/backend/spec/features/admin/products/edit/products_spec.rb
+++ b/backend/spec/features/admin/products/edit/products_spec.rb
@@ -21,7 +21,7 @@ describe 'Product Details', type: :feature, js: true do
expect(page).to have_field(id: 'product_description', with: 'lorem ipsum')
expect(page).to have_field(id: 'product_price', with: '19.99')
expect(page).to have_field(id: 'product_cost_price', with: '17.00')
- expect(page).to have_field(id: 'product_available_on', with: '2013/08/14')
+ expect(page).to have_field(id: 'product_available_on', type: :hidden, with: '2013-08-14')
expect(page).to have_field(id: 'product_sku', with: 'A100')
end