mirror of
https://github.com/sartography/spiffworkflow-frontend.git
synced 2025-02-22 11:18:19 +00:00
attempt to send data to cypress.io w/ burnettk
This commit is contained in:
parent
5d2ffa3111
commit
ac81d69e61
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
@ -61,15 +61,24 @@ jobs:
|
|||||||
uses: cypress-io/github-action@v4
|
uses: cypress-io/github-action@v4
|
||||||
with:
|
with:
|
||||||
working-directory: ./spiffworkflow-frontend
|
working-directory: ./spiffworkflow-frontend
|
||||||
|
browser: chrome
|
||||||
|
record: true
|
||||||
|
env:
|
||||||
|
# pass the Dashboard record key as an environment variable
|
||||||
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
|
# pass GitHub token to allow accurately detecting a build vs a re-run build
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# https://github.com/cypress-io/github-action#artifacts
|
# https://github.com/cypress-io/github-action#artifacts
|
||||||
- uses: actions/upload-artifact@v2
|
- name: upload_screenshots
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: cypress-screenshots
|
name: cypress-screenshots
|
||||||
path: ./spiffworkflow-frontend/cypress/screenshots
|
path: ./spiffworkflow-frontend/cypress/screenshots
|
||||||
# Test run video was always captured, so this action uses "always()" condition
|
# Test run video was always captured, so this action uses "always()" condition
|
||||||
- uses: actions/upload-artifact@v2
|
- name: upload_videos
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: cypress-videos
|
name: cypress-videos
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
cypress/videos
|
cypress/videos
|
||||||
|
cypress/screenshots
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
const { defineConfig } = require("cypress");
|
const { defineConfig } = require("cypress");
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
|
projectId: "crax1q",
|
||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: "http://localhost:7001",
|
baseUrl: "http://localhost:7001",
|
||||||
setupNodeEvents(on, config) {
|
setupNodeEvents(on, config) {
|
||||||
|
5
cypress/.eslintrc.json
Normal file
5
cypress/.eslintrc.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"plugin:cypress/recommended"
|
||||||
|
]
|
||||||
|
}
|
@ -195,7 +195,7 @@ export default function ReactDiagramEditor(props) {
|
|||||||
function displayDiagram(diagramModelerToUse, diagramXMLToDisplay) {
|
function displayDiagram(diagramModelerToUse, diagramXMLToDisplay) {
|
||||||
diagramModelerToUse.importXML(diagramXMLToDisplay);
|
diagramModelerToUse.importXML(diagramXMLToDisplay);
|
||||||
}
|
}
|
||||||
}, [props, diagramXML, diagramModelerState]);
|
}, [props, diagramXML, diagramModelerState, performingXmlUpdates]);
|
||||||
|
|
||||||
function handleSave() {
|
function handleSave() {
|
||||||
diagramModelerState.saveXML({ format: true })
|
diagramModelerState.saveXML({ format: true })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user