test: stabilize dedicated graph and project e2e

This commit is contained in:
Jake Barnby
2026-05-18 13:19:23 +12:00
parent 398384eca5
commit 882598c8bd
2 changed files with 48 additions and 7 deletions
@@ -1056,11 +1056,28 @@ class ProjectsConsoleClientTest extends Scope
/**
* Test for SUCCESS
*/
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-response-format' => '1.9.4',
], $this->getHeaders()));
$response = [];
$this->assertEventually(function () use (&$response, $id) {
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-response-format' => '1.9.4',
], $this->getHeaders()));
$this->assertSame(200, $response['headers']['status-code']);
$this->assertSame(135, $response['body']['authDuration']);
$githubProvider = null;
foreach ($response['body']['oAuthProviders'] as $provider) {
if ($provider['key'] === 'github') {
$githubProvider = $provider;
break;
}
}
$this->assertNotNull($githubProvider, 'GitHub provider not found');
$this->assertSame('github-client-id', $githubProvider['appId']);
}, 20000, 500);
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals($id, $response['body']['$id']);