Add/improve e2e test cases

This commit is contained in:
Tobias Gesellchen
2026-04-04 18:53:59 +02:00
parent cc92430e69
commit c1e7d513b4
12 changed files with 188 additions and 46 deletions
@@ -23,7 +23,7 @@ Content-Type: application/json
client.test("Response body has expected structure", function() {
client.assert(response.body.hasOwnProperty("access_token"), "Response body missing 'access_token'");
client.assert(response.body.access_token.length > 0, "access_token is empty");
client.assert(response.body.access_token === "mock-access-token", "access_token is not 'mock-access-token'");
client.assert(response.body.hasOwnProperty("expires_in"), "Response body missing 'expires_in'");
client.assert(typeof response.body.expires_in === "number", "expires_in is not a number");
+10
View File
@@ -0,0 +1,10 @@
{
"test-user": {
"user_id": "test-user",
"display_name": "Integration Test User",
"email": "test@example.com",
"access_token": "mock-access-token",
"refresh_token": "mock-refresh-token",
"expires_at": 2147483647
}
}