0.0.23 • Published 28 days ago

test-case-mind-map v0.0.23

Weekly downloads
-
License
-
Repository
-
Last release
28 days ago

适用于编辑测试用例的思维导图编辑器

基于 PIXI.js 绘制的测试用例思维导图编辑器

使用方式

安装

npm i test-case-mind-map

使用

const container = document.querySelector('#editor-container');
const minder = new Minder(container);

minder.loadData({
  root: {
    text: 'Demo',
    type: 'folder',
    children: [
      {
        text: '登陆注册',
        type: 'folder',
        children: [
          {
            text: '登陆 & 前置条件,网络正常',
            type: 'case',
            priority: 1,
            children: [
              {
                text: '适用定制域名下的QQ登陆 & 成功登陆,进入定制版机构端',
                type: 'step',
              },
              {
                text: '适用定制域名下的微信登陆 & 成功登陆,进入定制版机构端',
                type: 'step',
              },
            ],
          },
          {
            text: '把大象关进冰箱 & 大象已经被打晕',
            type: 'case',
            priority: 2,
            children: [
              { text: '打开冰箱', type: 'step' },
              {
                text: '将大象放入冰箱 & 塞入成功',
                type: 'step',
              },
              {
                text: '关上冰箱',
                type: 'step',
              },
            ],
          },
        ],
      },
      {
        text: '高级版',
        type: 'folder',
        children: [
          {
            text: '页面检查',
            type: 'folder',
            children: [
              {
                text: '检查标签页title和icon',
                type: 'case',
                priority: 3,
                children: [
                  {
                    text: '检查标签页面 & 不再显示童心制物-慧课堂,显示机构名称',
                    type: 'step',
                  },
                  { text: '检查icon & 与官方后台配置一致', type: 'step' },
                ],
              },
            ],
          },
        ],
      },
    ],
  },
});

console.log(minder.exportData())
0.0.23

28 days ago

0.0.22

4 months ago

0.0.20

8 months ago

0.0.21

7 months ago

0.0.12

8 months ago

0.0.13

8 months ago

0.0.14

8 months ago

0.0.15

8 months ago

0.0.16

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.19

8 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago