Uncomment Specs and Add additional Logging (#10989)

This commit is contained in:
Molly Struve 2020-10-21 16:56:29 -04:00 committed by GitHub
parent fb67f13573
commit b9000cb6a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,9 +27,12 @@ RSpec.describe "Views an article", type: :system do
end
describe "when showing the date" do
# TODO: Molly investigating
xit "shows the readable publish date", js: true do
it "shows the readable publish date", js: true do
visit article.path
# TODO: Molly investigating spec failures if this fails retry your build
puts "Readable Compare date #{article.displayable_published_at}"
puts find("article time")[:datetime]
puts find("article time")[:title]
expect(page).to have_selector("article time", text: article.readable_publish_date)
end
@ -52,7 +55,7 @@ RSpec.describe "Views an article", type: :system do
end
end
# TODO: Molly investigating
# TODO: Molly is investigating
xit "shows the identical readable publish dates in each page", js: true do
visit first_article.path
expect(page).to have_selector("article time", text: first_article.readable_publish_date)