mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-03 08:05:24 +00:00
fix paths in reporting job
This commit is contained in:
parent
c96d631b46
commit
1ecd8fbc2f
36
.github/workflows/test.e2e.yml
vendored
36
.github/workflows/test.e2e.yml
vendored
@ -144,7 +144,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: cypress-test-results-${{ github.run_id }}
|
name: cypress-test-results-${{ github.run_id }}
|
||||||
path: |
|
path: |
|
||||||
cypress/cypress/results/
|
cypress/results/
|
||||||
cypress/screenshots/
|
cypress/screenshots/
|
||||||
cypress/videos/
|
cypress/videos/
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
@ -174,39 +174,7 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: cypress-test-results-${{ github.run_id }}
|
name: cypress-test-results-${{ github.run_id }}
|
||||||
path: ./downloaded-reports
|
path: ./cypress
|
||||||
|
|
||||||
- name: Debug downloaded artifacts
|
|
||||||
run: |
|
|
||||||
echo "=== Downloaded artifact structure ==="
|
|
||||||
find downloaded-reports/ -type f 2>/dev/null || echo "No files found"
|
|
||||||
echo ""
|
|
||||||
echo "=== Looking for JSON files ==="
|
|
||||||
find downloaded-reports/ -name "*.json" 2>/dev/null || echo "No JSON files found"
|
|
||||||
|
|
||||||
- name: Copy reports to expected location
|
|
||||||
run: |
|
|
||||||
# Create the target directory structure in cypress directory
|
|
||||||
mkdir -p cypress/results
|
|
||||||
|
|
||||||
# Copy all files from downloaded artifacts, preserving structure
|
|
||||||
if [ -d "downloaded-reports" ]; then
|
|
||||||
# Find and copy all JSON files regardless of their path in the artifact
|
|
||||||
find downloaded-reports/ -name "*.json" -exec cp {} cypress/results/ \;
|
|
||||||
|
|
||||||
# Copy screenshots if they exist
|
|
||||||
if [ -d "downloaded-reports/screenshots" ]; then
|
|
||||||
cp -r downloaded-reports/screenshots cypress/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Copy videos if they exist
|
|
||||||
if [ -d "downloaded-reports/videos" ]; then
|
|
||||||
cp -r downloaded-reports/videos cypress/
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "=== Files copied to cypress/results/ ==="
|
|
||||||
ls -la cypress/results/ || echo "No files in cypress/results/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Merge test reports
|
- name: Merge test reports
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export default defineConfig({
|
|||||||
reporterOptions: {
|
reporterOptions: {
|
||||||
useInlineDiffs: true,
|
useInlineDiffs: true,
|
||||||
embeddedScreenshots: true,
|
embeddedScreenshots: true,
|
||||||
reportDir: 'cypress/results',
|
reportDir: 'results',
|
||||||
reportFilename: '[name].html',
|
reportFilename: '[name].html',
|
||||||
overwrite: false,
|
overwrite: false,
|
||||||
html: true,
|
html: true,
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
Cypress.on('uncaught:exception', (err, _runnable) => {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Uncaught exception:', err.message)
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
|
|
||||||
describe('Utopia Map Login', () => {
|
describe('Utopia Map Login', () => {
|
||||||
const testData = {
|
const testData = {
|
||||||
validUser: {
|
validUser: {
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
Cypress.on('uncaught:exception', (err, _runnable) => {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Uncaught exception:', err.message)
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
|
|
||||||
describe('Utopia Map Login Form Elements', () => {
|
describe('Utopia Map Login Form Elements', () => {
|
||||||
// TODO: set this data different
|
// TODO: set this data different
|
||||||
const _testData = {
|
const _testData = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user