Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button 测试用例已知问题 #423

Closed
qiqingfu opened this issue Nov 27, 2020 · 0 comments · Fixed by #424
Closed

Button 测试用例已知问题 #423

qiqingfu opened this issue Nov 27, 2020 · 0 comments · Fixed by #424

Comments

@qiqingfu
Copy link
Contributor

存在相同的测试用例代码

  it('set button loading by prop loading', async () => {
    const wrapper = mount(Button, {
      props: {
        loading: true
      }
    })

    expect(wrapper.classes()).toContain(`is-loading`)
  })

看了一遍测试用例代码,好像没有遗漏的测试点,认为重复的测试用例是多余的,则移除一个。

it (msg) disabled 单词拼写错误

    it('by elForm.disable', () => {
      const wrapper = mount(Button, {
        global: {
          provide: {
            elForm: reactive({
              disabled: true
            })
          }
        }
      })

      expect(wrapper.classes()).toContain(`is-disabled`)
      expect(wrapper.attributes()).toHaveProperty('disabled')
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant