mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
1c6895884c
* WIP: testing fixes to share the dev server in e2e test suites * temp: testing multiple workers * Revert "temp: testing multiple workers" This reverts commit 9c7bc9d93c9c3f6dd62e3732f878f2d86016b213.
27 lines
638 B
JavaScript
27 lines
638 B
JavaScript
import { expect } from '@playwright/test';
|
|
import { testFactory } from './test-utils.js';
|
|
|
|
const test = testFactory({ root: './fixtures/nested-styles/' });
|
|
|
|
let devServer;
|
|
|
|
test.beforeAll(async ({ astro }) => {
|
|
devServer = await astro.startDevServer();
|
|
});
|
|
|
|
test.afterAll(async () => {
|
|
await devServer.stop();
|
|
});
|
|
|
|
test.describe('Loading styles that are nested', () => {
|
|
test('header', async ({ page, astro }) => {
|
|
await page.goto(astro.resolveUrl('/'));
|
|
|
|
const header = page.locator('header');
|
|
|
|
await expect(header, 'should have background color').toHaveCSS(
|
|
'background-color',
|
|
'rgb(0, 0, 139)' // darkblue
|
|
);
|
|
});
|
|
});
|