Skip to content

Commit 33e95b6

Browse files
committed
#54: Set a global value for timeouts that's used across all wait related actions
- Added Unit test for getDefaultWaitTimeout method
1 parent d51d8ef commit 33e95b6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace tests\unit\Magento\FunctionalTestFramework\Module;
8+
9+
use PHPUnit\Framework\TestCase;
10+
use Magento\FunctionalTestingFramework\Module\MagentoWebDriver;
11+
12+
class MagentoWebDriverTest extends TestCase
13+
{
14+
/**
15+
* Method should return either .env file value or constant value
16+
*/
17+
public function testGetDefaultWaitTimeout()
18+
{
19+
$this->assertEquals(MagentoWebDriver::getDefaultWaitTimeout(), MagentoWebDriver::DEFAULT_WAIT_TIMEOUT);
20+
21+
$envFile = new \Dotenv\Dotenv(__DIR__ . '/../../../../../../');
22+
$envFile->load();
23+
24+
$this->assertEquals(MagentoWebDriver::getDefaultWaitTimeout(), 20);
25+
}
26+
}

0 commit comments

Comments
 (0)