From e89e40e6bf40cd90a8478609e3881485fe711168 Mon Sep 17 00:00:00 2001 From: Akiko Takano Date: Sat, 26 Aug 2017 22:26:19 +0900 Subject: [PATCH] Update test code. (Because modal header was changed from "Issue Template" to "Template".) --- spec/features/issue_template_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/issue_template_spec.rb b/spec/features/issue_template_spec.rb index 4c612173..c3c005c5 100644 --- a/spec/features/issue_template_spec.rb +++ b/spec/features/issue_template_spec.rb @@ -106,7 +106,7 @@ end scenario 'popup Template filter' do - expect(titlebar).to have_content('Issue template: Bug') + expect(titlebar).to have_content('Template: Bug') end context 'Template filtered' do @@ -121,7 +121,7 @@ end scenario 'Click filtered link and applied template' do - table.find('tbody > tr > td:nth-child(5) > a').click + table.find('tbody > tr > td:nth-child(4) > a').click sleep(0.2) description = page.find('#issue_description') expect(description.value).to match 'Sample description for rspec' @@ -162,7 +162,7 @@ issue_description.set(expected_description) page.find('#link_template_dialog').click sleep(0.2) - table.find('tbody > tr > td:nth-child(5) > a').click + table.find('tbody > tr > td:nth-child(4) > a').click sleep(0.2) modal_close.click end @@ -179,7 +179,7 @@ issue_description.set('different description') page.find('#link_template_dialog').click sleep(0.2) - table.find('tbody > tr > td:nth-child(5) > a').click + table.find('tbody > tr > td:nth-child(4) > a').click sleep(0.2) modal_close.click end