Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperMekarski committed Mar 30, 2021
1 parent 0ba04ef commit ce6ee7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/static_content_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@
scenario 'has valid meta title' do
create(:page, slug: '/page', title: 'Title', meta_title: 'Meta Title', stores: [store])
visit '/page'
expect(page).to have_meta(:title, 'Meta Title')
expect(page.has_css?("meta[name='title'][content='Meta Title']", visible: false)).to eq true
end
end

context 'when meta title is not present' do
scenario 'has meta title like title' do
create(:page, slug: '/page', title: 'Title', meta_title: nil, stores: [store])
visit '/page'
expect(page).to have_meta(:title, 'Title')
expect(page.has_css?("meta[name='title'][content='Title']", visible: false)).to eq true
end
end
end
Expand Down

0 comments on commit ce6ee7f

Please sign in to comment.