Skip to content

Commit

Permalink
chore: fix tests for #2985 (#3028)
Browse files Browse the repository at this point in the history
* chore: fix tests for #2985

* another approach
  • Loading branch information
Paul-Bob authored Jul 19, 2024
1 parent ce37d2f commit 34c48c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/system/avo/tabs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
it "doesn't display the birthday from the tab content" do
visit "/admin/resources/users"

expect(find("table thead").text).to eq "Select all\n\t\nID\n\t\nAVATAR\n\t\nFIRST NAME\n\t\nLAST NAME\n\t\nUSER EMAIL\n\t\nIS ACTIVE\n\t\nCV\n\t\nIS ADMIN\n\t\nROLES\n\t\nBIRTHDAY\n\t\nIS WRITER"
expect(find("table thead").text).to eq "Select all\n\t\nID\n\t\nAVATAR\n\t\nFIRST NAME\n\t\nLAST NAME\n\t\nUSER EMAIL\n\t\nIS ACTIVE\n\t\nCV\n\t\nIS ADMIN\n\t\nROLES\n\t\nPERMISSIONS\n\t\nBIRTHDAY\n\t\nIS WRITER"
within find("tr[data-resource-id='#{user.to_param}']") do
expect(find_all("table tbody tr td")[10].text).to eq "Wednesday, 10 February 1988"
expect(find_all("table tbody tr td")[11].text).to eq "Wednesday, 10 February 1988"
end
end
end
Expand Down

0 comments on commit 34c48c7

Please sign in to comment.