Skip to content

Commit

Permalink
ACMS-4173: fix existing site tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Sep 10, 2024
1 parent cb8b397 commit 1844079
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/src/ExistingSite/InstallStateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public function testConfig(): void {
// Check page caching set for one year and css/js are aggregated.
$performance_config = $this->config('system.performance');
$this->assertSame(31536000, $performance_config->get('cache.page.max_age'));
// In CI DSR generate the local.settings.php file which
// sets the aggregation to false causing failure.
// Hence, commenting below assertion until the ACMS-4207.
$this->assertTrue($performance_config->get('css.preprocess'));
$this->assertTrue($performance_config->get('js.preprocess'));

Expand Down
2 changes: 1 addition & 1 deletion tests/src/ExistingSite/IntegratedPermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function providerRoleExistNotExist(): array {
* @throws \Exception
*/
public static function providerBasicPermissions(): array {
$instance = new static();
$instance = new static('test');
return [
[
'developer',
Expand Down
2 changes: 1 addition & 1 deletion tests/src/ExistingSiteJavascript/AudioComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testComponent(): void {

// Add audio media.
$this->getSession()->getPage()->fillField('soundcloud_url', 'https://soundcloud.com/yungh-tej/na-na-na-official-song-osekhon-ft-tej-gill?utm_source=clipboard&utm_medium=text&utm_campaign=so');
$this->getSession()->getPage()->pressButton('Add');
$this->getSession()->getPage()->find("css", 'form[id^="soundcloud-media-add-form"] [id^="edit-submit"]')->click();
$assertSession->waitForElementVisible('css', '.field--name-name input[name="media[0][fields][name][0][value]"]');
$this->getSession()->getPage()->find("css", ".ui-dialog-buttonset button")->click();
// Wait for Media Library form to appear showing list of media items.
Expand Down

0 comments on commit 1844079

Please sign in to comment.