func (s *WorkItem2Suite) TestWI2SuccessCreateWorkItemWithLegacyDescription() {
	// given
	c := minimumRequiredCreatePayload()
	c.Data.Attributes[workitem.SystemTitle] = "Title"
	c.Data.Attributes[workitem.SystemState] = workitem.SystemStateNew
	c.Data.Attributes[workitem.SystemDescription] = "Description"
	c.Data.Relationships.BaseType = newRelationBaseType(space.SystemSpace, workitem.SystemBug)

	// when
	_, wi := test.CreateWorkitemCreated(s.T(), s.svc.Context, s.svc, s.wi2Ctrl, c.Data.Relationships.Space.Data.ID.String(), &c)
	// then
	require.NotNil(s.T(), wi.Data)
	require.NotNil(s.T(), wi.Data.Attributes)
	assert.Equal(s.T(), c.Data.Attributes[workitem.SystemTitle], wi.Data.Attributes[workitem.SystemTitle])
	// for now, we keep the legacy format in the output
	assert.Equal(s.T(), "Description", wi.Data.Attributes[workitem.SystemDescription])
	assert.Equal(s.T(), "Description", wi.Data.Attributes[workitem.SystemDescriptionRendered])
	assert.Equal(s.T(), rendering.SystemMarkupDefault, wi.Data.Attributes[workitem.SystemDescriptionMarkup])
}
// TestWI2SuccessCreateWorkItemWithDescription verifies that the `workitem.SystemDescription` attribute is set, as well as its pair workitem.SystemDescriptionMarkup when the work item description is provided
TestWI2SuccessCreateWorkItemWithDescription verifies that the `workitem.SystemDescription` attribute is set, as well as its pair workitem.SystemDescriptionMarkup when the work item description is provided
// TestWI2SuccessCreateWorkItemWithDescription verifies that the ` workitem . SystemDescription ` attribute is set as well as its pair workitem . SystemDescriptionMarkup when the work item description is provided
func (s *WorkItem2Suite) TestWI2SuccessCreateWorkItemWithLegacyDescription() {
	c := minimumRequiredCreatePayload()
	c.Data.Attributes[workitem.SystemTitle] = "Title"
	c.Data.Attributes[workitem.SystemState] = workitem.SystemStateNew
	c.Data.Attributes[workitem.SystemDescription] = "Description"
	c.Data.Relationships.BaseType = newRelationBaseType(space.SystemSpace, workitem.SystemBug)
	_, wi := test.CreateWorkitemCreated(s.T(), s.svc.Context, s.svc, s.wi2Ctrl, c.Data.Relationships.Space.Data.ID.String(), &c)
	require.NotNil(s.T(), wi.Data)
	require.NotNil(s.T(), wi.Data.Attributes)
	assert.Equal(s.T(), c.Data.Attributes[workitem.SystemTitle], wi.Data.Attributes[workitem.SystemTitle])
	assert.Equal(s.T(), "Description", wi.Data.Attributes[workitem.SystemDescription])
	assert.Equal(s.T(), "Description", wi.Data.Attributes[workitem.SystemDescriptionRendered])
	assert.Equal(s.T(), rendering.SystemMarkupDefault, wi.Data.Attributes[workitem.SystemDescriptionMarkup])
}
func ( s * WorkItem2Suite ) TestWI2SuccessCreateWorkItemWithLegacyDescription ( ) { c := minimumRequiredCreatePayload ( ) c . Data . Attributes [ workitem . SystemTitle ] = " " c . Data . Attributes [ workitem . SystemState ] = workitem . SystemStateNew c . Data . Attributes [ workitem . SystemDescription ] = " " c . Data . Relationships . BaseType = newRelationBaseType ( space . SystemSpace , workitem . SystemBug ) _ , wi := test . CreateWorkitemCreated ( s . T ( ) , s . svc . Context , s . svc , s . wi2Ctrl , c . Data . Relationships . Space . Data . ID . String ( ) , & c ) require . NotNil ( s . T ( ) , wi . Data ) require . NotNil ( s . T ( ) , wi . Data . Attributes ) assert . Equal ( s . T ( ) , c . Data . Attributes [ workitem . SystemTitle ] , wi . Data . Attributes [ workitem . SystemTitle ] ) assert . Equal ( s . T ( ) , " " , wi . Data . Attributes [ workitem . SystemDescription ] ) assert . Equal ( s . T ( ) , " " , wi . Data . Attributes [ workitem . SystemDescriptionRendered ] ) assert . Equal ( s . T ( ) , rendering . SystemMarkupDefault , wi . Data . Attributes [ workitem . SystemDescriptionMarkup ] ) }
TestWI2SuccessCreateWorkItemWithDescription verifies that the `workitem.SystemDescription` attribute is set, as well as its pair workitem.SystemDescriptionMarkup when the work item description is provided
TestWI2SuccessCreateWorkItemWithDescription verifies that the ` workitem . SystemDescription ` attribute is set as well as its pair workitem . SystemDescriptionMarkup when the work item description is provided
// given // when // then // for now, we keep the legacy format in the output