generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Move e2e tests into shared library (#807)
- Loading branch information
Showing
198 changed files
with
2,072 additions
and
2,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { testBasicIO } from 'e2e-shared/specs/basic-io.cy' | ||
|
||
testBasicIO({ | ||
hook: 'useQueryState', | ||
path: '/app/basic-io/useQueryState', | ||
nextJsRouter: 'app' | ||
}) | ||
|
||
testBasicIO({ | ||
hook: 'useQueryStates', | ||
path: '/app/basic-io/useQueryStates', | ||
nextJsRouter: 'app' | ||
}) | ||
|
||
testBasicIO({ | ||
hook: 'useQueryState', | ||
path: '/pages/basic-io/useQueryState', | ||
nextJsRouter: 'pages' | ||
}) | ||
|
||
testBasicIO({ | ||
hook: 'useQueryStates', | ||
path: '/pages/basic-io/useQueryStates', | ||
nextJsRouter: 'pages' | ||
}) |
25 changes: 25 additions & 0 deletions
25
packages/e2e/next/cypress/e2e/shared/hash-preservation.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { testHashPreservation } from 'e2e-shared/specs/hash-preservation.cy' | ||
|
||
testHashPreservation({ | ||
path: '/app/hash-preservation', | ||
nextJsRouter: 'app', | ||
description: 'standard route' | ||
}) | ||
|
||
testHashPreservation({ | ||
path: '/app/hash-preservation/dynamic/route', | ||
nextJsRouter: 'app', | ||
description: 'dynamic route' | ||
}) | ||
|
||
testHashPreservation({ | ||
path: '/pages/hash-preservation', | ||
nextJsRouter: 'pages', | ||
description: 'standard route' | ||
}) | ||
|
||
testHashPreservation({ | ||
path: '/pages/hash-preservation/dynamic/route', | ||
nextJsRouter: 'pages', | ||
description: 'dynamic route' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { testLinking } from 'e2e-shared/specs/linking.cy' | ||
|
||
testLinking({ | ||
hook: 'useQueryState', | ||
path: '/app/linking/useQueryState', | ||
nextJsRouter: 'app' | ||
}) | ||
|
||
testLinking({ | ||
hook: 'useQueryStates', | ||
path: '/app/linking/useQueryStates', | ||
nextJsRouter: 'app' | ||
}) | ||
|
||
testLinking({ | ||
hook: 'useQueryState', | ||
path: '/pages/linking/useQueryState', | ||
nextJsRouter: 'pages' | ||
}) | ||
|
||
testLinking({ | ||
hook: 'useQueryStates', | ||
path: '/pages/linking/useQueryStates', | ||
nextJsRouter: 'pages' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { testPush } from 'e2e-shared/specs/push.cy' | ||
|
||
testPush({ | ||
path: '/app/push/useQueryState', | ||
hook: 'useQueryState', | ||
nextJsRouter: 'app', | ||
description: 'standard route' | ||
}) | ||
|
||
testPush({ | ||
path: '/app/push/useQueryStates', | ||
hook: 'useQueryStates', | ||
nextJsRouter: 'app', | ||
description: 'standard route' | ||
}) | ||
|
||
testPush({ | ||
path: '/pages/push/useQueryState', | ||
hook: 'useQueryState', | ||
nextJsRouter: 'pages', | ||
description: 'standard route' | ||
}) | ||
|
||
testPush({ | ||
path: '/pages/push/useQueryStates', | ||
hook: 'useQueryStates', | ||
nextJsRouter: 'pages', | ||
description: 'standard route' | ||
}) | ||
|
||
// -- | ||
|
||
testPush({ | ||
path: '/app/push/useQueryState/dynamic/route', | ||
hook: 'useQueryState', | ||
nextJsRouter: 'app', | ||
description: 'dynamic route' | ||
}) | ||
|
||
testPush({ | ||
path: '/app/push/useQueryStates/dynamic/route', | ||
hook: 'useQueryStates', | ||
nextJsRouter: 'app', | ||
description: 'dynamic route' | ||
}) | ||
|
||
testPush({ | ||
path: '/pages/push/useQueryState/dynamic/route', | ||
hook: 'useQueryState', | ||
nextJsRouter: 'pages', | ||
description: 'dynamic route' | ||
}) | ||
|
||
testPush({ | ||
path: '/pages/push/useQueryStates/dynamic/route', | ||
hook: 'useQueryStates', | ||
nextJsRouter: 'pages', | ||
description: 'dynamic route' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { testRouting } from 'e2e-shared/specs/routing.cy' | ||
|
||
testRouting({ | ||
path: '/app/routing/useQueryState', | ||
hook: 'useQueryState', | ||
nextJsRouter: 'app' | ||
}) | ||
|
||
testRouting({ | ||
path: '/app/routing/useQueryStates', | ||
hook: 'useQueryStates', | ||
nextJsRouter: 'app' | ||
}) | ||
|
||
testRouting({ | ||
path: '/pages/routing/useQueryState', | ||
hook: 'useQueryState', | ||
nextJsRouter: 'pages' | ||
}) | ||
|
||
testRouting({ | ||
path: '/pages/routing/useQueryStates', | ||
hook: 'useQueryStates', | ||
nextJsRouter: 'pages' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
import setup from 'cypress-terminal-report/src/installLogsCollector' | ||
|
||
setup() | ||
import 'e2e-shared/cypress/support/e2e' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/basic-io/useQueryState/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { UseQueryStateBasicIO } from 'e2e-shared/specs/basic-io' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<UseQueryStateBasicIO /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/basic-io/useQueryStates/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { UseQueryStatesBasicIO } from 'e2e-shared/specs/basic-io' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<UseQueryStatesBasicIO /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/hash-preservation/dynamic/[route]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { HashPreservation } from 'e2e-shared/specs/hash-preservation' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<HashPreservation /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/hash-preservation/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { HashPreservation } from 'e2e-shared/specs/hash-preservation' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<HashPreservation /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/linking/useQueryState/other/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { LinkingUseQueryState } from 'e2e-shared/specs/linking' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<LinkingUseQueryState path="/app/linking/useQueryState" /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/linking/useQueryState/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { LinkingUseQueryState } from 'e2e-shared/specs/linking' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<LinkingUseQueryState path="/app/linking/useQueryState" /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/linking/useQueryStates/other/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { LinkingUseQueryStates } from 'e2e-shared/specs/linking' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<LinkingUseQueryStates path="/app/linking/useQueryStates" /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/linking/useQueryStates/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { LinkingUseQueryStates } from 'e2e-shared/specs/linking' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<LinkingUseQueryStates path="/app/linking/useQueryStates" /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/push/useQueryState/dynamic/[route]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { PushUseQueryState } from 'e2e-shared/specs/push' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<PushUseQueryState /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/push/useQueryState/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { PushUseQueryState } from 'e2e-shared/specs/push' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<PushUseQueryState /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/push/useQueryStates/dynamic/[route]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { PushUseQueryStates } from 'e2e-shared/specs/push' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<PushUseQueryStates /> | ||
</Suspense> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/e2e/next/src/app/app/(shared)/push/useQueryStates/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { PushUseQueryStates } from 'e2e-shared/specs/push' | ||
import { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense> | ||
<PushUseQueryStates /> | ||
</Suspense> | ||
) | ||
} |
Oops, something went wrong.