Skip to content

Commit 2618c8a

Browse files
committed
avoid flaky errors due to narrow viewport width
1 parent eb830c3 commit 2618c8a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/material-experimental/popover-edit/popover-edit.spec.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,12 @@ class ElementDataSource extends DataSource<PeriodicElement> {
219219
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
220220
</mat-table>
221221
</div>
222-
`
222+
`,
223+
styles: [`
224+
mat-table {
225+
margin: 16px;
226+
}
227+
`]
223228
})
224229
class MatFlexTableInCell extends BaseTestComponent {
225230
displayedColumns = ['before', 'name', 'weight'];
@@ -265,7 +270,12 @@ class MatFlexTableInCell extends BaseTestComponent {
265270
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
266271
</table>
267272
<div>
268-
`
273+
`,
274+
styles: [`
275+
table {
276+
margin: 16px;
277+
}
278+
`]
269279
})
270280
class MatTableInCell extends BaseTestComponent {
271281
displayedColumns = ['before', 'name', 'weight'];

0 commit comments

Comments
 (0)