1
- import { html , fixture , expect , elementUpdated } from '@open-wc/testing' ;
2
- import { UUITableElement } from './uui-table.element' ;
3
- import { UUITableRowElement } from './uui-table-row.element' ;
1
+ import '.' ;
2
+
3
+ import { elementUpdated , expect , fixture , html } from '@open-wc/testing' ;
4
+
4
5
import { UUITableCellElement } from './uui-table-cell.element' ;
5
- import './index' ;
6
+ import { UUITableRowElement } from './uui-table-row.element' ;
7
+ import { UUITableElement } from './uui-table.element' ;
6
8
7
9
describe ( 'UuiTable' , ( ) => {
8
10
let table : UUITableElement ;
@@ -28,7 +30,7 @@ describe('UuiTable', () => {
28
30
< uui-table-row >
29
31
< uui-table-cell > Hello 3</ uui-table-cell >
30
32
< uui-table-cell > Hello 3</ uui-table-cell >
31
- < uui-table-cell > Hello 3</ uui-table-cell >
33
+ < uui-table-cell > Hello long text 3</ uui-table-cell >
32
34
</ uui-table-row >
33
35
</ uui-table >
34
36
`
@@ -48,7 +50,8 @@ describe('UuiTable', () => {
48
50
?. assignedElements ( ) [ 2 ] as UUITableCellElement ;
49
51
cell . setAttribute ( 'clip-text' , 'true' ) ;
50
52
await elementUpdated ( cell ) ;
51
- expect ( cell . title ) . to . equal ( 'Hello 3' ) ;
53
+ expect ( cell ) . to . have . attribute ( 'title' , 'Hello long text 3' ) ;
54
+ expect ( cell . title ) . to . equal ( 'Hello long text 3' ) ;
52
55
} ) ;
53
56
54
57
it ( 'ROW: Adds selected attribute when clicked' , async ( ) => {
0 commit comments