diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-03-08 12:30:01 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-03-08 12:30:01 +0300 |
commit | 96a3847eb1bc18d6ea2d228fef488c0cee0e66ec (patch) | |
tree | 93cacd9f236a98caada90e98f5fa35a430f02d15 /spec/features | |
parent | 9df3aaae69826209db91b970ceae0f2133d00980 (diff) | |
parent | c63afd30ed2c5a342c0c4d2347c948f622a66f00 (diff) |
Merge branch '43770-change-clear-runners-cache-ujs-action-to-an-axios-request' into 'master'
Resolve "Change Clear Runners cache UJS action to an API request"
Closes #43770
See merge request gitlab-org/gitlab-ce!17466
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/pipelines/pipelines_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb index 849d85061df..33ad59abfdf 100644 --- a/spec/features/projects/pipelines/pipelines_spec.rb +++ b/spec/features/projects/pipelines/pipelines_spec.rb @@ -557,7 +557,7 @@ describe 'Pipelines', :js do end it 'has a clear caches button' do - expect(page).to have_link 'Clear Runner Caches' + expect(page).to have_button 'Clear Runner Caches' end describe 'user clicks the button' do @@ -567,14 +567,16 @@ describe 'Pipelines', :js do end it 'increments jobs_cache_index' do - click_link 'Clear Runner Caches' + click_button 'Clear Runner Caches' + wait_for_requests expect(page.find('.flash-notice')).to have_content 'Project cache successfully reset.' end end context 'when project does not have jobs_cache_index' do it 'sets jobs_cache_index to 1' do - click_link 'Clear Runner Caches' + click_button 'Clear Runner Caches' + wait_for_requests expect(page.find('.flash-notice')).to have_content 'Project cache successfully reset.' end end |