Sha256: 1bef65646d7ca72ad9fb5abf95c66800bb4560bafa753969a925faff139903ba

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

module Workarea
  decorate Admin::OrdersSystemTest, with: :forter do
    def test_fraud
      order = create_placed_forter_order(email: 'decline@workarea.com')
      visit admin.order_path(order)
      click_link t('workarea.admin.orders.attributes.fraud.title')

      assert(page.has_content?('decline')) # decision
      assert(page.has_content?(order.fraud_decision.message))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-forter-1.3.2 test/system/workarea/admin/orders_system_test.decorator
workarea-forter-1.3.1 test/system/workarea/admin/orders_system_test.decorator
workarea-forter-1.3.0 test/system/workarea/admin/orders_system_test.decorator