Skip to content

new landing — fixes #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 27 commits into
base: new-landing--what-is-graphql
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"lint:docs:ci": "eslint --ignore-path .gitignore src/pages/learn --format eslint-formatter-github",
"postbuild": "next-sitemap",
"prebuild": "tsx src/get-github-info.ts",
"test": "echo \"no tests\" && exit 1",
"test": "playwright test",
"test:ui": "playwright test --ui",
"validate:snippets": "node scripts/validate-snippets.js"
},
"dependencies": {
Expand Down Expand Up @@ -75,6 +76,7 @@
"devDependencies": {
"@graphql-eslint/eslint-plugin": "4.3.0",
"@next/eslint-plugin-next": "^15.3.3",
"@playwright/test": "^1.54.2",
"@svgr/webpack": "^8.1.0",
"@types/codemirror": "5.60.16",
"@types/hast": "3.0.4",
Expand All @@ -99,6 +101,9 @@
"tsx": "^4.19.4",
"typescript": "^5.8.3"
},
"optionalDependencies": {
"playwright": "^1.54.2"
},
"pnpm": {
"patchedDependencies": {
"nextra": "patches/nextra.patch"
Expand Down
31 changes: 31 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { defineConfig, devices } from "@playwright/test"

/**
* @see https://playwright.dev/docs/test-configuration
*/
export default defineConfig({
testDir: "./test/e2e",
outputDir: "./test/out",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: "html",
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
},

projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],

webServer: {
command: "pnpm dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},
})
85 changes: 64 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const FOOTER_SECTIONS: FooterSection[] = [
{ title: "GitHub", route: "https://github.com/graphql" },
{
title: "Specification",
route: "/spec",
route: "https://spec.graphql.org",
},
{ title: "Libraries & Tools", route: "/code" },
{
Expand Down Expand Up @@ -78,7 +78,7 @@ const FOOTER_SECTIONS: FooterSection[] = [
),
route: "/community/contribute/essential-links",
},
{ title: "Landscape", route: "/landscape" },
{ title: "Landscape", route: "https://landscape.graphql.org" },
{ title: "Shop", route: "https://store.graphql.org/" },
],
},
Expand Down
Loading
Loading