Skip to content

Commit aa35599

Browse files
committed
fix
1 parent 42abd36 commit aa35599

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.woodpecker.star

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,9 +1383,8 @@ def uploadTracingResult(ctx):
13831383
"commands": [
13841384
"mc alias set s3 $MC_HOST $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY",
13851385
"mc cp -a %s/tests/e2e/test-results/* s3/$PUBLIC_BUCKET/web/tracing/$CI_REPO_NAME/$CI_PIPELINE_NUMBER/" % dir["web"],
1386-
"cd %s/tests/e2e/test-results/" % dir["web"],
13871386
'echo "To see the trace, please open the following link in the console"',
1388-
'find . -name "trace.zip" | sed "s|^./||" | while read f; do echo "npx playwright show-trace $MC_HOST/$PUBLIC_BUCKET/web/tracing/$CI_REPO_NAME/$CI_PIPELINE_NUMBER/$f"; done',
1387+
'mc find s3/$PUBLIC_BUCKET/web/tracing/$CI_REPO_NAME/$CI_PIPELINE_NUMBER/ --name "trace.zip" | sed "s|s3/$PUBLIC_BUCKET/||" | while read f; do echo "npx playwright show-trace $MC_HOST/$PUBLIC_BUCKET/$f"; done',
13891388
],
13901389
"when": {
13911390
"status": status,

tests/e2e/steps/ui/spaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ When(
7878
case 'image':
7979
await spacesObject.changeSpaceImage({
8080
key,
81-
resource: this.filesEnvironment.getFile({ name: value })
81+
resource: world.filesEnvironment.getFile({ name: value })
8282
})
8383
break
8484
case 'icon':
@@ -118,7 +118,7 @@ When(
118118
case 'image':
119119
await spacesObject.changeSpaceImage({
120120
key,
121-
resource: this.filesEnvironment.getFile({ name: value }),
121+
resource: world.filesEnvironment.getFile({ name: value }),
122122
contextMenu: true
123123
})
124124
break

0 commit comments

Comments
 (0)