attempt to send data to cypress.io w/ burnettk

This commit is contained in:
jasquat 2022-06-17 11:05:14 -04:00
parent 5d2ffa3111
commit ac81d69e61
5 changed files with 19 additions and 3 deletions

View File

@ -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
View File

@ -23,3 +23,4 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
cypress/videos cypress/videos
cypress/screenshots

View File

@ -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
View File

@ -0,0 +1,5 @@
{
"extends": [
"plugin:cypress/recommended"
]
}

View File

@ -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 })