Add debugging to playwright test
This commit is contained in:
parent
721807b034
commit
1f0aef7ff2
|
|
@ -184,9 +184,10 @@ test('Dashboard - Preserve widget sizes', async ({ browser }) => {
|
||||||
const current = await readLayouts(page);
|
const current = await readLayouts(page);
|
||||||
const inflated: Record<string, any[]> = {};
|
const inflated: Record<string, any[]> = {};
|
||||||
for (const bp of Object.keys(current)) {
|
for (const bp of Object.keys(current)) {
|
||||||
inflated[bp] = current[bp].map((it: any) =>
|
inflated[bp] = current[bp].map((it: any) => {
|
||||||
it?.i === 'ovr-so' ? { ...it, w: TARGET_W, h: TARGET_H } : it
|
console.log('inflating it:', bp, it);
|
||||||
);
|
return it?.i === 'ovr-so' ? { ...it, w: TARGET_W, h: TARGET_H } : it;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const api = createApi({
|
const api = createApi({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue