Commit c1ea58bc authored by Simon Knox's avatar Simon Knox

Update description inline when editing iteration

Previously this required page refresh as we weren't
getting descriptionHtml in the update query response
parent 9714640d
...@@ -3,6 +3,7 @@ mutation createIteration($input: CreateIterationInput!) { ...@@ -3,6 +3,7 @@ mutation createIteration($input: CreateIterationInput!) {
iteration { iteration {
title title
description description
descriptionHtml
startDate startDate
dueDate dueDate
webUrl webUrl
......
...@@ -4,6 +4,7 @@ mutation updateIteration($input: UpdateIterationInput!) { ...@@ -4,6 +4,7 @@ mutation updateIteration($input: UpdateIterationInput!) {
id id
title title
description description
descriptionHtml
startDate startDate
dueDate dueDate
} }
......
---
title: Update description when editing iteration
merge_request: 40476
author:
type: fixed
...@@ -46,6 +46,7 @@ RSpec.describe 'User views iteration' do ...@@ -46,6 +46,7 @@ RSpec.describe 'User views iteration' do
aggregate_failures do aggregate_failures do
expect(page).to have_content(updated_title) expect(page).to have_content(updated_title)
expect(page).to have_content(updated_desc)
expect(page).to have_content(updated_start_date.strftime('%b %-d, %Y')) expect(page).to have_content(updated_start_date.strftime('%b %-d, %Y'))
expect(page).to have_content(updated_due_date.strftime('%b %-d, %Y')) expect(page).to have_content(updated_due_date.strftime('%b %-d, %Y'))
expect(page).to have_current_path(group_iteration_path(group, iteration)) expect(page).to have_current_path(group_iteration_path(group, iteration))
......
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