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()); } }