Skip to content

Commit

Permalink
OXDEV-8213 Used themeId from evn variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RahatHameed committed Jun 21, 2024
1 parent 82314bb commit 8c83a75
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tests/Codeception/Acceptance/Theme/ThemeListCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,22 @@ public function testThemeListAuthorized(AcceptanceTester $I): void

$I->assertArrayNotHasKey('errors', $result);
$themeList = $result['data']['themesList'];
$I->assertCount(1, $themeList);

$I->assertEquals("APEX Theme", $themeList[0]['title']);
$I->assertEquals("apex", $themeList[0]['identifier']);
$I->assertEquals("APEX - Bootstrap 5 TWIG Theme", $themeList[0]['description']);
$I->assertTrue($themeList[0]['active']);
$I->assertNotEmpty($themeList);
}

public function runThemeListQuery(AcceptanceTester $I): array
{
$themeId = getenv('THEME_ID');
$I->login($this->getAdminUsername(), $this->getAdminPassword());
$I->sendGQLQuery(
'query themeList {
themesList(
filters: {
activeFilter: {
equals: true
active: {
equals: true
}
titleFilter: {
contains: "APEX Theme"
title: {
contains: "' . $themeId . '"
}
}
) {
Expand Down

0 comments on commit 8c83a75

Please sign in to comment.