Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorikfon committed May 6, 2024
1 parent 79e466e commit 9786792
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/AdminCabinet/Tests/FillDataTimeSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testChangeDataTimeSettings(array $params): void
$this->clickSidebarMenuItemByHref('/admin-cabinet/time-settings/modify/');
$this->selectDropdownItem(PbxSettingsConstants::PBX_TIMEZONE, $params[PbxSettingsConstants::PBX_TIMEZONE]);
$this->changeCheckBoxState(PbxSettingsConstants::PBX_MANUAL_TIME_SETTINGS, $params[PbxSettingsConstants::PBX_MANUAL_TIME_SETTINGS]);

sleep(2);
if ($params[PbxSettingsConstants::PBX_MANUAL_TIME_SETTINGS]) {
$this->changeInputField('ManualDateTime', $params['ManualDateTime']);
} else {
Expand All @@ -61,6 +61,10 @@ public function testChangeDataTimeSettings(array $params): void

// Save the settings
$this->submitForm('time-settings-form');

// Wait for Nginx restarted
sleep(10);

$this->clickSidebarMenuItemByHref('/admin-cabinet/time-settings/modify/');

$this->assertMenuItemSelected(PbxSettingsConstants::PBX_TIMEZONE, $params['PBXTimezone']);
Expand Down

0 comments on commit 9786792

Please sign in to comment.