Skip to content

Commit 25b00c3

Browse files
committed
fixup
1 parent f8394e5 commit 25b00c3

File tree

41 files changed

+190
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+190
-203
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,9 +920,9 @@ jobs:
920920
env:
921921
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
922922

923-
############ TRIGGER QWIKCITY E2E TEST ############
923+
############ TRIGGER QWIKKROUTER E2E TEST ############
924924
trigger-qwikrouter-e2e:
925-
name: Trigger Qwik City E2E
925+
name: Trigger Qwik Router E2E
926926
runs-on: ubuntu-latest
927927
if: github.ref == 'refs/heads/upcoming'
928928

e2e/adapters-e2e/src/entry.express.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const buildDir = join(distDir, 'build');
2121
// Allow for dynamic port
2222
const PORT = process.env.PORT ?? 3000;
2323

24-
// Create the Qwik City Node middleware
24+
// Create the Router Node middleware
2525
const { router, notFound } = createQwikRouter({
2626
render,
2727
// getOrigin(req) {
@@ -46,10 +46,10 @@ const app = express();
4646
app.use(`/build`, express.static(buildDir, { immutable: true, maxAge: '1y' }));
4747
app.use(express.static(distDir, { redirect: false }));
4848

49-
// Use Qwik City's page and endpoint request handler
49+
// Use Router's page and endpoint request handler
5050
app.use(router);
5151

52-
// Use Qwik City's 404 handler
52+
// Use Router's 404 handler
5353
app.use(notFound);
5454

5555
// Start the express server

e2e/adapters-e2e/src/entry.preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
import { createQwikRouter } from '@qwik.dev/router/middleware/node';
1414
import render from './entry.ssr';
1515

16-
/** The default export is the QwikCity adapter used by Vite preview. */
16+
/** The default export is the Qwik Router adapter used by Vite preview. */
1717
export default createQwikRouter({ render });

e2e/docs-e2e/playwright.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { defineConfig, devices } from '@playwright/test';
77

88
/** See https://playwright.dev/docs/test-configuration. */
99

10-
const TestingURL = 'http://127.0.0.1:3000';
10+
const TestingURL = 'http://localhost:3000';
1111

1212
export default defineConfig({
1313
testDir: './tests',
@@ -40,10 +40,6 @@ export default defineConfig({
4040
name: 'chromium',
4141
use: { ...devices['Desktop Chrome'] },
4242
},
43-
{
44-
name: 'chrome',
45-
use: { ...devices['Desktop Chrome'] },
46-
},
4743

4844
{
4945
name: 'firefox',
@@ -78,7 +74,7 @@ export default defineConfig({
7874

7975
/* Run your local dev server before starting the tests */
8076
webServer: {
81-
command: 'pnpm -C ../../ run docs.dev',
77+
command: 'pnpm -C ../.. run docs.dev',
8278
url: TestingURL,
8379
reuseExistingServer: !process.env.CI,
8480
},

e2e/docs-e2e/tests/Docs/advanced-pages-load.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ test('Advanced Vite page loads', async ({ page }) => {
4848

4949
test('Advanced Routing page loads', async ({ page }) => {
5050
await page.goto('/docs/advanced/routing/');
51-
await expect(page).toHaveTitle('Advanced Routing | Qwik City 📚 Qwik Documentation');
51+
await expect(page).toHaveTitle('Advanced Routing | Qwik Router 📚 Qwik Documentation');
5252
});
5353

5454
test('Advanced Plugins page loads', async ({ page }) => {
5555
await page.goto('/docs/advanced/plugins/');
56-
await expect(page).toHaveTitle('Qwik Plugins | Qwik City 📚 Qwik Documentation');
56+
await expect(page).toHaveTitle('Qwik Plugins | Qwik Router 📚 Qwik Documentation');
5757
});
5858

5959
test('Advanced Request Handling page loads', async ({ page }) => {

e2e/docs-e2e/tests/Docs/docs-components-pages-load.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ test('Components Styles page loads', async ({ page }) => {
3838
test('Components API Reference page loads', async ({ page }) => {
3939
await page.goto('/api/qwik/');
4040

41-
// todo V2: change this to @qwik.dev
42-
await expect(page).toHaveTitle('@builder.io/qwik API Reference 📚 Qwik Documentation');
41+
await expect(page).toHaveTitle('@qwik.dev/qwik API Reference 📚 Qwik Documentation');
4342
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('Experimental Overview page loads', async ({ page }) => {
4+
await page.goto('/docs/labs/');
5+
await expect(page).toHaveTitle('🧪 Experimental | Overview 📚 Qwik Documentation');
6+
});
7+
8+
test('Experimental Insights page loads', async ({ page }) => {
9+
await page.goto('/docs/labs/insights/');
10+
await expect(page).toHaveTitle('🧪 Insights | Experimental 📚 Qwik Documentation');
11+
});
12+
13+
test('Experimental usePreventNavigate page loads', async ({ page }) => {
14+
await page.goto('/docs/labs/usePreventNavigate/');
15+
await expect(page).toHaveTitle('🧪 usePreventNavigate | Experimental 📚 Qwik Documentation');
16+
});

e2e/docs-e2e/tests/Docs/guides-pages-load.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ test('Guides Bundle Optimization page loads', async ({ page }) => {
3939

4040
test('Guides Environment Variables page loads', async ({ page }) => {
4141
await page.goto('/docs/guides/env-variables/');
42-
await expect(page).toHaveTitle('Environment variables | Qwik City 📚 Qwik Documentation');
42+
await expect(page).toHaveTitle('Environment variables | Qwik Router 📚 Qwik Documentation');
4343
});

e2e/docs-e2e/tests/Docs/integrations-pages-load.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';
22

33
test('Integrations Overview page loads', async ({ page }) => {
44
await page.goto('/docs/integrations/');
5-
await expect(page).toHaveTitle('Qwik City Integrations | Guides 📚 Qwik Documentation');
5+
await expect(page).toHaveTitle('Qwik Router Integrations | Guides 📚 Qwik Documentation');
66
});
77

88
test('Integrations Astro page loads', async ({ page }) => {
@@ -72,7 +72,7 @@ test('Integrations OG Image / Open Graph Image page loads', async ({ page }) =>
7272

7373
test('Integrations Orama page loads', async ({ page }) => {
7474
await page.goto('/docs/integrations/orama/');
75-
await expect(page).toHaveTitle('Qwik City and Orama 📚 Qwik Documentation');
75+
await expect(page).toHaveTitle('Qwik Router and Orama 📚 Qwik Documentation');
7676
});
7777

7878
test('Integrations Panda CSS page loads', async ({ page }) => {

e2e/docs-e2e/tests/Docs/pages-load-test.spec.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ test('docs page loads', async ({ page }) => {
3838

3939
expect(componentsLinksOnPage).toStrictEqual(expectedComponentLinks);
4040

41-
const qwikCityLinksOnPage = await page
41+
const qwikRouterLinksOnPage = await page
4242
.locator('#qwik-sidebar')
43-
.locator('details:has(summary h5:text("Qwik City")) ul li a')
43+
.locator('details:has(summary h5:text("Qwik Router")) ul li a')
4444
.allTextContents();
4545

46-
const expectedQwikCityLinks = [
46+
const expectedQwikRouterLinks = [
4747
'Overview',
4848
'Routing',
4949
'Pages',
@@ -61,7 +61,7 @@ test('docs page loads', async ({ page }) => {
6161
'API reference',
6262
];
6363

64-
expect(qwikCityLinksOnPage).toStrictEqual(expectedQwikCityLinks);
64+
expect(qwikRouterLinksOnPage).toStrictEqual(expectedQwikRouterLinks);
6565

6666
const cookbookLinksOnPage = await page
6767
.locator('#qwik-sidebar')
@@ -84,6 +84,7 @@ test('docs page loads', async ({ page }) => {
8484
'Theme Management',
8585
'Drag & Drop',
8686
'View Transition',
87+
'Detect img tag onLoad',
8788
];
8889

8990
// if you are adding a new page to the cookbook, please add a new test for the page to load too
@@ -146,6 +147,7 @@ test('docs page loads', async ({ page }) => {
146147
'Self-Hosting',
147148
'Vercel Edge',
148149
'Static Site',
150+
'GitHub Pages',
149151
'Azion',
150152
];
151153

@@ -166,6 +168,7 @@ test('docs page loads', async ({ page }) => {
166168
'Best Practices',
167169
'Bundle Optimization',
168170
'Env variables',
171+
'Rewrites',
169172
];
170173

171174
expect(guidesLinksOnPage).toStrictEqual(expectedGuidesLinks);
@@ -217,20 +220,20 @@ test('docs page loads', async ({ page }) => {
217220

218221
expect(referenceLinksOnPage).toStrictEqual(expectedReferenceLinks);
219222

220-
const qwikLabsLinksOnPage = await page
223+
const ExperimentalLinksOnPage = await page
221224
.locator('#qwik-sidebar')
222-
.locator('details:has(summary h5:text("Qwik Labs 🧪")) ul li a')
225+
.locator('details:has(summary h5:text("Experimental 🧪")) ul li a')
223226
.allTextContents();
224227

225-
const expectedQwikLabsLinks = [
228+
const expectedExperimentalLinks = [
226229
'Overview',
227230
'Insights',
228231
'Typed Routes',
229232
'Devtools',
230233
'usePreventNavigate',
231234
];
232235

233-
expect(qwikLabsLinksOnPage).toStrictEqual(expectedQwikLabsLinks);
236+
expect(ExperimentalLinksOnPage).toStrictEqual(expectedExperimentalLinks);
234237

235238
const communityLinksOnPage = await page
236239
.locator('#qwik-sidebar')
@@ -249,7 +252,7 @@ test('getting started page loads', async ({ page }) => {
249252

250253
test('Project Structure page loads', async ({ page }) => {
251254
await page.goto('/docs/project-structure/');
252-
await expect(page).toHaveTitle('Project Structure | Qwik City 📚 Qwik Documentation');
255+
await expect(page).toHaveTitle('Project Structure | Qwik Router 📚 Qwik Documentation');
253256
});
254257

255258
test('FAQ page loads', async ({ page }) => {

0 commit comments

Comments
 (0)