TimeTrex Community Edition v16.2.0
This commit is contained in:
27
vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/SessionCommand/FileTest.php
vendored
Normal file
27
vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/SessionCommand/FileTest.php
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Selenium2TestCase\SessionCommand;
|
||||
|
||||
use Tests\Selenium2TestCase\BaseTestCase;
|
||||
|
||||
class FileTest extends BaseTestCase
|
||||
{
|
||||
public function testUploadFile()
|
||||
{
|
||||
$this->markTestIncomplete("Cannot get this to run <del>reliably</del><em>at all</em> on Travis CI.");
|
||||
$this->url('php/file_upload.php');
|
||||
|
||||
$remote_file = $this->file('selenium-1-tests/html/banner.gif');
|
||||
|
||||
$this->byName('upload_here')
|
||||
->value($remote_file);
|
||||
|
||||
$this->byId('submit')
|
||||
->click();
|
||||
|
||||
$msg_displayed = $this->byId('uploaded')
|
||||
->displayed();
|
||||
|
||||
$this->assertNotEmpty($msg_displayed);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user