YetiForceCompany/YetiForceCRM

View on GitHub
tests/Gui/SettingsTest.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

/**
 * List view test class.
 *
 * @package   Tests
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */

use Facebook\WebDriver\WebDriverBy;

/**
 * @internal
 * @coversNothing
 */
final class Gui_SettingsTest extends \Tests\GuiBase
{
    /**
     * Testing marketplace view.
     *
     * @return void
     */
    public function testMarketplace(): void
    {
        static::markTestSkipped('unfinished');
        // $this->url('index.php?parent=Settings&module=Vtiger&view=Index');
        // $this->findError();
        // static::assertSame('Settings', $this->driver->findElement(WebDriverBy::id('parent'))->getAttribute('value'));
        // static::assertSame('Vtiger', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
        // static::assertSame('Index', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
    }

    /**
     * Testing dashboard view.
     *
     * @return void
     */
    public function testDashboard(): void
    {
        static::markTestSkipped('unfinished');
        // $this->url('index.php?parent=Settings&module=YetiForce&view=Shop');
        // $this->findError();
        // static::assertSame('Settings', $this->driver->findElement(WebDriverBy::id('parent'))->getAttribute('value'));
        // static::assertSame('YetiForce', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
        // static::assertSame('Shop', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
    }
}