diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-01 21:09:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-01 21:09:55 +0300 |
commit | 4316e6895a9038cc21eeef847578e2918d5b5595 (patch) | |
tree | 738650d5359ff5c19f4f0b28468f23956ec4ca54 /spec/features/incidents | |
parent | 7b197a72aac71c97cf234401a585aba58841ed64 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/incidents')
-rw-r--r-- | spec/features/incidents/incident_timeline_events_spec.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/spec/features/incidents/incident_timeline_events_spec.rb b/spec/features/incidents/incident_timeline_events_spec.rb index f78a49759df..6db9f87d6f2 100644 --- a/spec/features/incidents/incident_timeline_events_spec.rb +++ b/spec/features/incidents/incident_timeline_events_spec.rb @@ -17,20 +17,20 @@ RSpec.describe 'Incident timeline events', :js do visit project_issues_incident_path(project, incident) wait_for_requests - click_link 'Timeline' + click_link s_('Incident|Timeline') end context 'when add event is clicked' do it 'submits event data when save is clicked' do - click_button 'Add new timeline event' + click_button s_('Incident|Add new timeline event') expect(page).to have_selector('.common-note-form') - fill_in 'Description', with: 'Event note goes here' + fill_in _('Description'), with: 'Event note goes here' fill_in 'timeline-input-hours', with: '07' fill_in 'timeline-input-minutes', with: '25' - click_button 'Save' + click_button _('Save') expect(page).to have_selector('.incident-timeline-events') @@ -45,24 +45,24 @@ RSpec.describe 'Incident timeline events', :js do before do click_button 'Add new timeline event' fill_in 'Description', with: 'Event note to edit' - click_button 'Save' + click_button _('Save') end it 'shows the confirmation modal and edits the event' do - click_button 'More actions' + click_button _('More actions') page.within '.gl-new-dropdown-contents' do - expect(page).to have_content('Edit') - page.find('.gl-new-dropdown-item-text-primary', text: 'Edit').click + expect(page).to have_content(_('Edit')) + page.find('.gl-new-dropdown-item-text-primary', text: _('Edit')).click end expect(page).to have_selector('.common-note-form') - fill_in 'Description', with: 'Event note goes here' + fill_in _('Description'), with: 'Event note goes here' fill_in 'timeline-input-hours', with: '07' fill_in 'timeline-input-minutes', with: '25' - click_button 'Save' + click_button _('Save') wait_for_requests @@ -75,28 +75,28 @@ RSpec.describe 'Incident timeline events', :js do context 'when delete is clicked' do before do - click_button 'Add new timeline event' - fill_in 'Description', with: 'Event note to delete' - click_button 'Save' + click_button s_('Incident|Add new timeline event') + fill_in _('Description'), with: 'Event note to delete' + click_button _('Save') end it 'shows the confirmation modal and deletes the event' do - click_button 'More actions' + click_button _('More actions') page.within '.gl-new-dropdown-contents' do - expect(page).to have_content('Delete') + expect(page).to have_content(_('Delete')) page.find('.gl-new-dropdown-item-text-primary', text: 'Delete').click end page.within '.modal' do - expect(page).to have_content('Delete event') + expect(page).to have_content(s_('Incident|Delete event')) end - click_button 'Delete event' + click_button s_('Incident|Delete event') wait_for_requests - expect(page).to have_content('No timeline items have been added yet.') + expect(page).to have_content(s_('Incident|No timeline items have been added yet.')) end end end |