ElixirVault/tests/SeleniumTests/BaseLoginTest.php

63 lines
2.0 KiB
PHP

<?php
namespace LoretaAudit\Tests\SeleniumTests;
use LoretaAudit\Tests\BasePhpUnitSeleniumCase;
use LoretaAudit\Tests\DataSetup\Constants\siteUsers;
use LoretaAudit\Tests\DataSetup\Traits\App\pubUsersTrait;
class BaseLoginTest extends BasePhpUnitSeleniumCase
{
use pubUsersTrait;
public function testBaseLogin()
{
// $this->logIntoApplicationByUserType(BasePhpUnitSeleniumCase::loginAppSelfEmployed);
// sleep(6);
// $this->logIntoAdmin(siteUsers::loginCmsAdmin);
// sleep(6);
$this->assertTrue(true);
// $this->dbSetup([
// 'kvsApp.sql', 'appUserData.sql',
// 'appMessages.sql', 'countries.sql',
// 'templateAndLinks.sql',
// //'pagesV3.sql'
// ]);
// $this->url('admin/access/login');
// $this->assertEquals('System Access', $this->byCssSelector('h1')->getText());
//
// $this->byId("accessloginusername")->sendKeys('martin');
// $this->byId("accessloginpassword")->sendKeys('magic8417');
// $this->byCssSelector("button.btn-primary")->click();
// $this->assertEquals('Dashboard', $this->byCssSelector('h1')->getText());
// $this->url('admin/apps/');
//
// $this->url('admin/apps/impersonate/45');
// $this->assertStringContainsString('Training Portal Dashboard', $this->byCssSelector('h1')->getText());
//
// $this->applicationBaseUrl = 'http://purple-square-recruitment-demo.healthcare_audit_php/';
// $this->url('user/6562');
//
// $this->clearTempFolder();
// $this->byCssSelector(".external.btn.btn-primary.btn-xs")->click();
//
// $file = $this->getFileFromTempFolder();
// $this->assertIsString($file, 'Downloaded file not found');
//
// $this->assertExpected([
// 'Purple Square Recruitment',
// 'Current Training Certificate Summary',
// 'Name of Candidate : Andy Corson'
// ], (new Extract())->pdf($file)->text());
}
}