Skip to content

Commit bf77e4f

Browse files
committed
test(uui-table): add extra text to overflow test
This ensures that the overflow actually activates on Firefox
1 parent d49335c commit bf77e4f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/uui-table/lib/uui-table.test.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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+
45
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';
68

79
describe('UuiTable', () => {
810
let table: UUITableElement;
@@ -28,7 +30,7 @@ describe('UuiTable', () => {
2830
<uui-table-row>
2931
<uui-table-cell>Hello 3</uui-table-cell>
3032
<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>
3234
</uui-table-row>
3335
</uui-table>
3436
`
@@ -48,7 +50,8 @@ describe('UuiTable', () => {
4850
?.assignedElements()[2] as UUITableCellElement;
4951
cell.setAttribute('clip-text', 'true');
5052
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');
5255
});
5356

5457
it('ROW: Adds selected attribute when clicked', async () => {

0 commit comments

Comments
 (0)