Skip to content

Commit 1cb6c44

Browse files
committed
Add e2e test
1 parent 7b8665e commit 1cb6c44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/gitbook/e2e/internal.spec.ts

+9
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,15 @@ const testCases: TestsCase[] = [
806806
},
807807
screenshot: false,
808808
},
809+
{
810+
// This test that a redirect that incudes a section path works
811+
name: 'Redirect to Quickstart page',
812+
url: 'sections-2/redirect-test',
813+
run: async (page) => {
814+
await expect(page.locator('h1')).toHaveText('Quickstart');
815+
},
816+
screenshot: false,
817+
},
809818
],
810819
},
811820
{

0 commit comments

Comments
 (0)