func (s *WorkItem2Suite) TestWI2UpdateOnlyState() {
	s.minimumPayload.Data.Attributes[workitem.SystemTitle] = "Test title"
	s.minimumPayload.Data.Attributes["system.state"] = "invalid_value"
	test.UpdateWorkitemBadRequest(s.T(), s.svc.Context, s.svc, s.wi2Ctrl, s.wi.Relationships.Space.Data.ID.String(), *s.wi.ID, s.minimumPayload)
	newStateValue := "closed"
	s.minimumPayload.Data.Attributes[workitem.SystemState] = newStateValue
	_, updatedWI := test.UpdateWorkitemOK(s.T(), s.svc.Context, s.svc, s.wi2Ctrl, s.wi.Relationships.Space.Data.ID.String(), *s.wi.ID, s.minimumPayload)
	require.NotNil(s.T(), updatedWI)
	assert.Equal(s.T(), updatedWI.Data.Attributes[workitem.SystemState], newStateValue)
}
// ========== Actual Test functions ==========
Actual Test functions
// ========== Actual Test functions ==========
func (s *WorkItem2Suite) TestWI2UpdateOnlyState() {
	s.minimumPayload.Data.Attributes[workitem.SystemTitle] = "Test title"
	s.minimumPayload.Data.Attributes["system.state"] = "invalid_value"
	test.UpdateWorkitemBadRequest(s.T(), s.svc.Context, s.svc, s.wi2Ctrl, s.wi.Relationships.Space.Data.ID.String(), *s.wi.ID, s.minimumPayload)
	newStateValue := "closed"
	s.minimumPayload.Data.Attributes[workitem.SystemState] = newStateValue
	_, updatedWI := test.UpdateWorkitemOK(s.T(), s.svc.Context, s.svc, s.wi2Ctrl, s.wi.Relationships.Space.Data.ID.String(), *s.wi.ID, s.minimumPayload)
	require.NotNil(s.T(), updatedWI)
	assert.Equal(s.T(), updatedWI.Data.Attributes[workitem.SystemState], newStateValue)
}
func ( s * WorkItem2Suite ) TestWI2UpdateOnlyState ( ) { s . minimumPayload . Data . Attributes [ workitem . SystemTitle ] = " " s . minimumPayload . Data . Attributes [ " " ] = " " test . UpdateWorkitemBadRequest ( s . T ( ) , s . svc . Context , s . svc , s . wi2Ctrl , s . wi . Relationships . Space . Data . ID . String ( ) , * s . wi . ID , s . minimumPayload ) newStateValue := " " s . minimumPayload . Data . Attributes [ workitem . SystemState ] = newStateValue _ , updatedWI := test . UpdateWorkitemOK ( s . T ( ) , s . svc . Context , s . svc , s . wi2Ctrl , s . wi . Relationships . Space . Data . ID . String ( ) , * s . wi . ID , s . minimumPayload ) require . NotNil ( s . T ( ) , updatedWI ) assert . Equal ( s . T ( ) , updatedWI . Data . Attributes [ workitem . SystemState ] , newStateValue ) }
Actual Test functions
Actual Test functions