Commit dd45ac26 authored by lauraMon's avatar lauraMon

Fixes failing specs and updates other spec

parent 06b72021
...@@ -31,8 +31,6 @@ describe 'When a user searches for Sentry errors', :js, :use_clean_rails_memory_ ...@@ -31,8 +31,6 @@ describe 'When a user searches for Sentry errors', :js, :use_clean_rails_memory_
find('.gl-form-input').set('NotFound').native.send_keys(:return) find('.gl-form-input').set('NotFound').native.send_keys(:return)
wait_for_requests
page.within(find('.gl-table')) do page.within(find('.gl-table')) do
results = page.all('.table-row') results = page.all('.table-row')
expect(results.count).to be(1) expect(results.count).to be(1)
......
...@@ -163,7 +163,7 @@ describe('ErrorTrackingList', () => { ...@@ -163,7 +163,7 @@ describe('ErrorTrackingList', () => {
it('it searches by query', () => { it('it searches by query', () => {
findSearchBox().vm.$emit('input', 'search'); findSearchBox().vm.$emit('input', 'search');
findSearchBox().trigger('keyup.enter'); findSearchBox().trigger('keyup.enter');
expect(actions.searchByQuery.mock.calls[0][1]).toEqual('search'); expect(actions.searchByQuery.mock.calls[0][1]).toBe('search');
}); });
it('it sorts by fields', () => { it('it sorts by fields', () => {
......
...@@ -49,7 +49,7 @@ describe Sentry::Client::Issue do ...@@ -49,7 +49,7 @@ describe Sentry::Client::Issue do
it_behaves_like 'calls sentry api' it_behaves_like 'calls sentry api'
it_behaves_like 'issues have correct return type', Gitlab::ErrorTracking::Error it_behaves_like 'issues have correct return type', Gitlab::ErrorTracking::Error
it_behaves_like 'issues have correct length', 1 it_behaves_like 'issues have correct length', 2
shared_examples 'has correct external_url' do shared_examples 'has correct external_url' do
context 'external_url' do context 'external_url' do
...@@ -184,7 +184,7 @@ describe Sentry::Client::Issue do ...@@ -184,7 +184,7 @@ describe Sentry::Client::Issue do
it_behaves_like 'calls sentry api' it_behaves_like 'calls sentry api'
it_behaves_like 'issues have correct return type', Gitlab::ErrorTracking::Error it_behaves_like 'issues have correct return type', Gitlab::ErrorTracking::Error
it_behaves_like 'issues have correct length', 1 it_behaves_like 'issues have correct length', 2
end end
context 'when cursor is present' do context 'when cursor is present' do
...@@ -194,7 +194,7 @@ describe Sentry::Client::Issue do ...@@ -194,7 +194,7 @@ describe Sentry::Client::Issue do
it_behaves_like 'calls sentry api' it_behaves_like 'calls sentry api'
it_behaves_like 'issues have correct return type', Gitlab::ErrorTracking::Error it_behaves_like 'issues have correct return type', Gitlab::ErrorTracking::Error
it_behaves_like 'issues have correct length', 1 it_behaves_like 'issues have correct length', 2
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment