Skip to content

Commit

Permalink
Add some more UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niedzielski committed Mar 8, 2024
1 parent 8051a14 commit 9eec9d9
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/to-do.text
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Explore competitors and technical docs.
Nullboard
Review the tutorial text too.
Dragula
https://github.com/atlassian/pragmatic-drag-and-drop
tldraw
https://www.sketch.com/apps
Review Lit docs.
Expand All @@ -183,3 +184,5 @@ Customize the PWA title bar.
https://devtoolstips.org/tips/en/simulate-pwa-wco/
Move children to parent button.
Scroll to line on focus.
Consider a new font.
https://news.ycombinator.com/item?id=39465891
7 changes: 7 additions & 0 deletions src/elements/app-menu/app-menu.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {AppMenu} from './app-menu.js'

test('tag is defined', () => {
const el = document.createElement('app-menu')
assert.instanceOf(el, AppMenu)
})
7 changes: 7 additions & 0 deletions src/elements/button-el.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {ButtonEl} from './button-el.js'

test('tag is defined', () => {
const el = document.createElement('button-el')
assert.instanceOf(el, ButtonEl)
})
7 changes: 7 additions & 0 deletions src/elements/drag-area.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {DragArea} from './drag-area.js'

test('tag is defined', () => {
const el = document.createElement('drag-area')
assert.instanceOf(el, DragArea)
})
7 changes: 7 additions & 0 deletions src/elements/drag-line.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {DragLine} from './drag-line.js'

test('tag is defined', () => {
const el = document.createElement('drag-line')
assert.instanceOf(el, DragLine)
})
7 changes: 7 additions & 0 deletions src/elements/group-list.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {GroupList} from './group-list.js'

test('tag is defined', () => {
const el = document.createElement('group-list')
assert.instanceOf(el, GroupList)
})
7 changes: 7 additions & 0 deletions src/elements/line-list.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {LineList} from './line-list.js'

test('tag is defined', () => {
const el = document.createElement('line-list')
assert.instanceOf(el, LineList)
})
7 changes: 7 additions & 0 deletions src/elements/linear-text/linear-text.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {LinearText} from './linear-text.js'

test('tag is defined', () => {
const el = document.createElement('linear-text')
assert.instanceOf(el, LinearText)
})
7 changes: 7 additions & 0 deletions src/elements/note-card.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {NoteCard} from './note-card.js'

test('tag is defined', () => {
const el = document.createElement('note-card')
assert.instanceOf(el, NoteCard)
})
7 changes: 7 additions & 0 deletions src/elements/split-block.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {SplitBlock} from './split-block.js'

test('tag is defined', () => {
const el = document.createElement('split-block')
assert.instanceOf(el, SplitBlock)
})
7 changes: 7 additions & 0 deletions src/elements/text-editor.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {assert} from '@esm-bundle/chai'
import {TextEditor} from './text-editor.js'

test('tag is defined', () => {
const el = document.createElement('text-editor')
assert.instanceOf(el, TextEditor)
})

0 comments on commit 9eec9d9

Please sign in to comment.