Skip to content

Commit

Permalink
Merge pull request #8267 from filipefurtad0/fix_negative_assertion
Browse files Browse the repository at this point in the history
Switches assertion order
  • Loading branch information
mkllnk authored Oct 5, 2021
2 parents f3ef3bb + 18ff3f5 commit ddd0034
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require 'spec_helper'
require 'system_helper'

describe 'Customers' do
include AdminHelper
Expand Down Expand Up @@ -31,11 +31,11 @@

select2_select managed_distributor2.name, from: "shop_id"

# Loads the right customers
# Loads the right customers; positive assertion first, so DOM content is loaded
expect(page).to have_selector "tr#c_#{customer4.id}"
expect(page).to have_no_selector "tr#c_#{customer1.id}"
expect(page).to have_no_selector "tr#c_#{customer2.id}"
expect(page).to have_no_selector "tr#c_#{customer3.id}"
expect(page).to have_selector "tr#c_#{customer4.id}"

# Changing Shops
select2_select managed_distributor1.name, from: "shop_id"
Expand Down

0 comments on commit ddd0034

Please sign in to comment.