Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions e2e/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @rsbuild/e2e

This folder contains the E2E test cases of Rsbuild. The E2E suite is powered by [Playwright](https://github.com/microsoft/playwright).
This folder contains the E2E test cases of Rsbuild. The E2E suite is powered by [Rstest](https://rstest.rs) and uses [Playwright](https://github.com/microsoft/playwright) for browser automation.

## Directory structure

Expand Down Expand Up @@ -32,7 +32,7 @@ npx rsbuild build
## Add test cases

```ts
import { test, expect } from '@playwright/test';
import { expect, test } from '@e2e/helper';

test('test 1 + 1', () => {
expect(1 + 1).toBe(2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { postcssPlugin } from './postcssPlugin';
import { postcssPlugin } from './postcssPlugin.js';

export default {
plugins: [postcssPlugin],
Expand Down
1 change: 1 addition & 0 deletions e2e/cases/html/template-cache/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { expect, test } from '@e2e/helper';
import type { RsbuildPlugin } from '@rsbuild/core';

// https://github.com/web-infra-dev/rsbuild/issues/5176

test('should not re-compile templates when the template is not changed', async ({
dev,
page,
Expand Down
1 change: 1 addition & 0 deletions e2e/cases/lazy-compilation/add-initial-chunk/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect, test } from '@e2e/helper';

// https://github.com/web-infra-dev/rspack/issues/6633

test('should render pages correctly when using lazy compilation and add new initial chunk', async ({
page,
dev,
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/overlay/runtime-errors-filter/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Page } from '@playwright/test';
import type { Page } from 'playwright';
import { expect, HMR_CONNECTED_LOG, OVERLAY_ID, test } from '@e2e/helper';

const triggerRuntimeError = async (page: Page, name: string, message: string) => {
Expand Down
2 changes: 1 addition & 1 deletion e2e/cases/plugin-svelte/transpile/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@e2e/helper';

test('should transpile .svelte files to ES2015 as expected', async ({ build }) => {
expect(build()).resolves.toBeTruthy();
await expect(build()).resolves.toBeTruthy();
});
Loading
Loading