Skip to content

Commit

Permalink
fix: tests to match latest UX
Browse files Browse the repository at this point in the history
Merge pull request #1 from ivelin/timeline-ux
  • Loading branch information
Ivelin Ivanov authored Mar 30, 2021
2 parents 3120cf3 + e5bf76a commit 3cf0d69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions tests/unit/components/navbar/navbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ describe('NavBar', () => {
expect(bar.exists()).toBe(true)
})

test('should load 5 buttons', () => {
const btn = wrapper.findAll('.v-btn')
expect(btn.length).toBe(6)
test('should load 4 buttons in nav bar: menu, timeline, connection and about', () => {
const btns = wrapper.findAll('.v-btn')
// we expect timeline, about, menu and connection buttons in nav bar
expect(btns.length).toBe(4)
})

test('should load navigation drawer', () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/components/shared/Button.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('Button', () => {

console.log(button.attributes())

expect(button.exists()).toBe(true)
expect(badge.exists()).toBe(false)
expect(button.exists()).toBe(true) // button attribute is on by default
expect(badge.exists()).toBe(true) // badge attribute is on by default
// should load the custom slot
expect(testSlot.exists()).toBe(true)
expect(testSlot.text()).toBe('hello from slot')
Expand Down

0 comments on commit 3cf0d69

Please sign in to comment.