Skip to content

Commit

Permalink
feat: 测试用例自定义字段
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopsken authored and chuan6 committed Apr 8, 2020
1 parent b6a0773 commit 7a8ccaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/schemas/ScenarioField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ export type EventScenarioFieldSchema =
ScenarioFieldSchema<EventOfficialScenarioFieldType>

export type TestcaseScenarioFieldSchema =
CustomScenarioFieldSchema |
ScenarioFieldSchema<TestcaseOfficialScenarioFieldType>
3 changes: 2 additions & 1 deletion src/schemas/ScenarioFieldConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export interface TestcaseScenarioFieldConfigSchema extends ScenarioFieldConfigSc

const schema: SchemaDef<
TaskScenarioFieldConfigSchema
| EventScenarioFieldConfigSchema> = {
| EventScenarioFieldConfigSchema
| TestcaseScenarioFieldConfigSchema> = {
_boundToObjectId: {
type: RDBType.STRING
},
Expand Down
2 changes: 1 addition & 1 deletion src/teambition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ declare module 'teambition-types' {
export type TaskScenarioFieldIcon = 'task' | 'requirement' | 'bug' | 'hr' | 'resource' | 'order' | 'salesLead' | 'subtask' | 'call' | 'visit'
| 'forum' | 'milestone'
export type TeamMemberStatus = 'in' | 'quited' | 'disabled'
export type TestcaseOfficialScenarioFieldType = 'precondition' | 'priority' | 'steps' | 'caseType'
export type TestcaseOfficialScenarioFieldType = 'precondition' | 'priority' | 'steps' | 'caseType' | 'tag'
export type TestcaseScenarioFieldIcon = 'testcase'
export type TestcasePriority = -1 | 0 | 1 | 2 | 3 | 4 | 5
export type TestcaseStepType = {
Expand Down

0 comments on commit 7a8ccaa

Please sign in to comment.