mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
attach-screenshots-from-journey-steps (#144447)
This commit is contained in:
parent
88815398e8
commit
1505c0688d
2 changed files with 10 additions and 2 deletions
|
@ -119,6 +119,14 @@ while read -r journey; do
|
|||
done
|
||||
done <<< "$journeys"
|
||||
|
||||
echo "--- Upload journey step screenshots"
|
||||
JOURNEY_SCREENSHOTS_DIR="${KIBANA_DIR}/data/journey_screenshots"
|
||||
if [ -d "$JOURNEY_SCREENSHOTS_DIR" ]; then
|
||||
cd "$JOURNEY_SCREENSHOTS_DIR"
|
||||
buildkite-agent artifact upload "**/*fullscreen*.png"
|
||||
cd "$KIBANA_DIR"
|
||||
fi
|
||||
|
||||
echo "--- report/record failed journeys"
|
||||
if [ "${failedJourneys[*]}" != "" ]; then
|
||||
buildkite-agent meta-data set "failed-journeys" "$(printf "%s\n" "${failedJourneys[@]}")"
|
||||
|
|
|
@ -92,7 +92,7 @@ export class JourneyScreenshots {
|
|||
await this.lock(async () => {
|
||||
const filename = FtrScreenshotFilename.create(`${step.index}-${step.name}-failure`);
|
||||
const fullscreenFilename = FtrScreenshotFilename.create(
|
||||
`${step.index}-${step.name}-failure-fullscreen`
|
||||
`${step.index}-${step.name.replace(/\s/g, '-')}-failure-fullscreen`
|
||||
);
|
||||
this.#manifest.steps.push({
|
||||
type: 'failure',
|
||||
|
@ -113,7 +113,7 @@ export class JourneyScreenshots {
|
|||
await this.lock(async () => {
|
||||
const filename = FtrScreenshotFilename.create(`${step.index}-${step.name}`);
|
||||
const fullscreenFilename = FtrScreenshotFilename.create(
|
||||
`${step.index}-${step.name}-fullscreen`
|
||||
`${step.index}-${step.name.replace(/\s/g, '-')}-fullscreen`
|
||||
);
|
||||
this.#manifest.steps.push({
|
||||
type: 'success',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue