Skip to content

Commit a1a5897

Browse files
committed
fix tests
1 parent 30250b9 commit a1a5897

File tree

1 file changed

+16
-19
lines changed
  • packages/addons/_tests/tailwindcss

1 file changed

+16
-19
lines changed

packages/addons/_tests/tailwindcss/test.ts

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,19 @@ test.concurrent.for(variants)('none - %s', async (variant, { page, ...ctx }) =>
2222
await expect(el).toHaveCSS('margin-top', '4px');
2323
});
2424

25-
test.concurrent.for(variants)(
26-
'typography without plugin - %s',
27-
async (variant, { page, ...ctx }) => {
28-
const cwd = await ctx.run(variant, { tailwindcss });
29-
30-
// ...add files
31-
addFixture(cwd, variant);
32-
33-
const { close } = await prepareServer({ cwd, page });
34-
// kill server process when we're done
35-
ctx.onTestFinished(async () => await close());
36-
37-
const el = page.getByTestId('typography');
38-
await expect(el).toHaveCSS('font-size', '18px');
39-
await expect(el).toHaveCSS('line-height', '28px');
40-
await expect(el).toHaveCSS('text-align', 'right');
41-
await expect(el).toHaveCSS('text-decoration-line', 'line-through');
42-
}
43-
);
25+
test.concurrent.for(variants)('typography - %s', async (variant, { page, ...ctx }) => {
26+
const cwd = await ctx.run(variant, { tailwindcss: { plugins: ['typography'] } });
27+
28+
// ...add files
29+
addFixture(cwd, variant);
30+
31+
const { close } = await prepareServer({ cwd, page });
32+
// kill server process when we're done
33+
ctx.onTestFinished(async () => await close());
34+
35+
const el = page.getByTestId('typography');
36+
await expect(el).toHaveCSS('font-size', '18px');
37+
await expect(el).toHaveCSS('line-height', '28px');
38+
await expect(el).toHaveCSS('text-align', 'right');
39+
await expect(el).toHaveCSS('text-decoration-line', 'line-through');
40+
});

0 commit comments

Comments
 (0)