TimeTrex/vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/SessionCommand/FileTest.php

28 lines
671 B
PHP
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
<?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);
}
}