提交 a67bf93b 编写于 作者: R Rémy Coutable

Fix the performance bar spec that was not asserting the right thing

Signed-off-by: NRémy Coutable <remy@rymai.me>
上级 5a983ac4
require 'rails_helper'
describe 'User can display performacne bar', :js do
describe 'User can display performance bar', :js do
shared_examples 'performance bar is disabled' do
it 'does not show the performance bar by default' do
expect(page).not_to have_css('#peek')
......@@ -27,8 +27,8 @@ describe 'User can display performacne bar', :js do
find('body').native.send_keys('pb')
end
it 'does not show the performance bar by default' do
expect(page).not_to have_css('#peek')
it 'shows the performance bar' do
expect(page).to have_css('#peek')
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册