Compare commits

...
Author SHA1 Message Date
Hemachandar fe166a7fee use react template 2025-10-29 15:31:54 +05:30
Hemachandar 7514240c27 fix: increase sites template deployment test timeout 2025-10-29 15:24:48 +05:30
@@ -1540,7 +1540,7 @@ class SitesCustomServerTest extends Scope
#[Retry(count: 3)]
public function testSiteTemplate(): void
{
$template = $this->getTemplate('playground-for-astro');
$template = $this->getTemplate('playground-for-react');
$this->assertEquals(200, $template['headers']['status-code']);
$template = $template['body'];
@@ -1579,7 +1579,7 @@ class SitesCustomServerTest extends Scope
$this->assertEventually(function () use ($siteId) {
$site = $this->getSite($siteId);
$this->assertNotEmpty($site['body']['deploymentId']);
}, 50000, 500);
}, 150000, 500);
$domain = $this->setupSiteDomain($siteId);
$proxyClient = new Client();
@@ -1588,14 +1588,8 @@ class SitesCustomServerTest extends Scope
$response = $proxyClient->call(Client::METHOD_GET, '/');
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertStringContainsString("Astro Blog", $response['body']);
$this->assertStringContainsString("Hello, Astronaut!", $response['body']);
$response = $proxyClient->call(Client::METHOD_GET, '/about');
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertStringContainsString("Astro Blog", $response['body']);
$this->assertStringContainsString("About Me", $response['body']);
$this->assertStringContainsString("React App", $response['body']);
$this->assertStringContainsString("Learn React", $response['body']);
$deployment = $this->getDeployment($siteId, $deployment['body']['$id']);
$this->assertEquals(200, $deployment['headers']['status-code']);
@@ -2097,7 +2091,7 @@ class SitesCustomServerTest extends Scope
$this->assertEventually(function () use ($siteId, $deploymentId2) {
$site = $this->getSite($siteId);
$this->assertEquals($deploymentId2, $site['body']['deploymentId']);
}, 50000, 500);
}, 150000, 500);
$response = $proxyClient->call(Client::METHOD_GET, '/not-found');
$this->assertStringContainsString("Index page", $response['body']);
@@ -2595,7 +2589,7 @@ class SitesCustomServerTest extends Scope
$deployment = $this->getDeployment($siteId, $deploymentId);
$this->assertEquals('failed', $deployment['body']['status']);
}, 50000, 500);
}, 150000, 500);
// deployment failed error page
$response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false, headers: [