Skip to content

Commit 855c95e

Browse files
committed
do not trigger screenshots from validate
1 parent 0ab9894 commit 855c95e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

scripts/pit/lib/lib-playwright.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
SCRSHT="$PIT_SCR_FOLDER/its/screenshot.js"
2-
31
## LIBRARY for installing and running playwright tests
42

53
## Check whether playwright is installed in node_modules folder of the test node-script

scripts/pit/lib/lib-validate.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,10 @@ runValidations() {
109109

110110
# 11
111111
if [ -n "$test" -a -z "$SKIPTESTS" -a -z "$SKIPPW" ]; then
112-
# Take screenshot before running tests
113-
[ -n "$SCREENSHOTS" ] && runPlaywrightTests "$SCRSHT" "$file" "$mode" "$name" "$version" "--port=$port" "--prefix=_before"
114112

115113
runPlaywrightTests "$test" "$file" "$mode" "$name" "$version" "--port=$port"
116114
test_result=$?
117115

118-
# Take screenshot after tests succeed
119-
[ -n "$SCREENSHOTS" ] && runPlaywrightTests "$SCRSHT" "$file" "$mode" "$name" "$version" "--port=$port" "--prefix=_after"
120-
121116
# Return the test result
122117
[ -z "$TEST" -a $test_result != 0 ] && return 1
123118
elif [ -n "$TEST" ]; then

0 commit comments

Comments
 (0)