mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 05:08:48 +01:00
Refactor logging messages in e2e workflow and test files for improved clarity
This commit is contained in:
parent
26ae280fe3
commit
63596b1fbd
3 changed files with 10 additions and 32 deletions
14
.github/workflows/e2e-testing.yml
vendored
14
.github/workflows/e2e-testing.yml
vendored
|
|
@ -112,7 +112,7 @@ jobs:
|
|||
echo "⏳ Waiting for Wekan to start..."
|
||||
for i in {1..24}; do
|
||||
if curl -s http://localhost > /dev/null 2>&1; then
|
||||
echo "✅ Wekan is responding!"
|
||||
echo "Wekan is responding!"
|
||||
break
|
||||
fi
|
||||
echo "Waiting... (attempt $i/24)"
|
||||
|
|
@ -120,7 +120,7 @@ jobs:
|
|||
done
|
||||
|
||||
# Create user directly in database with the exact structure from browser
|
||||
echo "👤 Creating test user directly in database..."
|
||||
echo "Creating test user directly in database..."
|
||||
sudo docker exec wekan-db mongosh wekan --eval '
|
||||
// Remove existing user first
|
||||
db.users.deleteMany({username: "omriza5"});
|
||||
|
|
@ -167,11 +167,11 @@ jobs:
|
|||
});
|
||||
|
||||
if (result.acknowledged) {
|
||||
print("✅ User omriza5 created successfully");
|
||||
print("User omriza5 created successfully");
|
||||
} else {
|
||||
print("❌ Failed to create user");
|
||||
print("Failed to create user");
|
||||
}
|
||||
' || echo "❌ Failed to execute MongoDB command"
|
||||
' || echo "Failed to execute MongoDB command"
|
||||
|
||||
# Verify user was created
|
||||
echo "🔍 Verifying user creation..."
|
||||
|
|
@ -186,9 +186,9 @@ jobs:
|
|||
|
||||
LOGIN_CODE=$(echo $LOGIN_RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
|
||||
if [[ "$LOGIN_CODE" == "200" ]]; then
|
||||
echo "✅ Login test successful"
|
||||
echo "Login test successful"
|
||||
else
|
||||
echo "⚠️ Login test failed (Code: $LOGIN_CODE)"
|
||||
echo "Login test failed (Code: $LOGIN_CODE)"
|
||||
echo "Response: $(echo $LOGIN_RESPONSE | sed -e 's/HTTPSTATUS:.*//g')"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue