Skip to content

Commit

Permalink
fix: fix the e2e error
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Feb 27, 2025
1 parent a1b315a commit 7f979be
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 176 deletions.
65 changes: 0 additions & 65 deletions e2e/tests/github-alert-mdxjs.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.describe('github alert syntax in mdx-rs', async () => {
let appPort;
let app;
test.beforeAll(async () => {
const appDir = path.join(fixtureDir, 'github-alert-mdxrs');
const appDir = path.join(fixtureDir, 'github-alert');
appPort = await getPort();
app = await runDevCommand(appDir, appPort);
});
Expand Down
63 changes: 0 additions & 63 deletions e2e/tests/mdx-rs.test.ts

This file was deleted.

45 changes: 0 additions & 45 deletions e2e/tests/modern-js.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion e2e/tests/replace-rules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test.describe('replace-rules test', async () => {
const textContent = await page.evaluate(text => text?.textContent, text);

expect(titleContent).toEqual('bar-title');
expect(h2Content).toEqual('bar-h2#');
expect(h2Content).toEqual('#bar-h2');
expect(textContent).toEqual('bar-content');
});
});
2 changes: 1 addition & 1 deletion e2e/tests/title-number.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test.describe('title-number test', async () => {
const h3 = await page.$$('h3');
const textList = await page.evaluate(h3 => h3.map(h => h.textContent), h3);

expect(textList).toEqual(['-22222222#', '-1111111111#', '-1111111111#']);
expect(textList).toEqual(['#-22222222', '#-1111111111', '#-1111111111']);

const h3A = await page.$$('h3 a');
const hrefList = await page.evaluate(
Expand Down

0 comments on commit 7f979be

Please sign in to comment.