-
-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,832 additions
and
34 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 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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
viewportWidth: 1280, | ||
chromeWebSecurity: false, | ||
projectId: 'hvviu4', | ||
video: true, // To remove when Test Replay is available in cypress.io | ||
e2e: { | ||
baseUrl: 'http://127.0.0.1:3000', | ||
excludeSpecPattern: ['*~'], | ||
specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,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,2 @@ | ||
// This file is here so it's easy to import commands in other files. | ||
import './support/commands'; |
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,27 @@ | ||
http: | ||
routers: | ||
frontend: | ||
rule: "Host(`localhost`)" | ||
service: frontend | ||
backend: | ||
rule: "Host(`localhost`) && PathPrefix(`/++api++`)" | ||
service: backend | ||
middlewares: | ||
- backend | ||
|
||
middlewares: | ||
backend: | ||
replacePathRegex: | ||
regex: "^/\\+\\+api\\+\\+($|/.*)" | ||
replacement: "/VirtualHostBase/http/localhost/plone/++api++/VirtualHostRoot$1" | ||
|
||
services: | ||
frontend: | ||
loadBalancer: | ||
servers: | ||
- url: "http://host.docker.internal:3000" | ||
backend: | ||
loadBalancer: | ||
servers: | ||
- url: "http://host.docker.internal:55001" | ||
|
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,24 @@ | ||
version: "3.7" | ||
|
||
services: | ||
|
||
proxy: | ||
image: traefik:v2.8 | ||
command: | ||
- "--api.insecure=true" | ||
- "--providers.docker=true" | ||
# - "--providers.docker.exposedbydefault=false" | ||
- "--providers.file=true" | ||
- "--providers.file.filename=/etc/traefik/rules.yml" | ||
- "--entrypoints.web.address=:80" | ||
- "--api.insecure=true" | ||
# - "--accesslog=true" | ||
# - "--log.level=DEBUG" | ||
ports: | ||
- 80:80 | ||
- "8888:8080" | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- ./seamless-rules.yml:/etc/traefik/rules.yml | ||
extra_hosts: | ||
- host.docker.internal:host-gateway |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "[email protected]", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
export function getIfExists( | ||
selector, | ||
successAction = () => {}, | ||
failAction = () => {}, | ||
) { | ||
cy.get('body').then((body) => { | ||
if (body.find(selector).length > 0 && successAction) { | ||
successAction(); | ||
} else if (failAction) { | ||
failAction(); | ||
} | ||
}); | ||
} |
Oops, something went wrong.