Skip to content

Commit 82f051d

Browse files
authored
added firefox environment (#5681)
* added firefox environment * added groups to ignore some tests in headless mode * updated tests
1 parent 362325e commit 82f051d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

tests/web.suite.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ modules:
77
browser: chrome
88
window_size: 1200x768
99
restart: true # Use a new browser window for each test (to isolate test cases from each other)
10-
1110
env:
11+
firefox:
12+
modules:
13+
config:
14+
WebDriver:
15+
browser: firefox
16+
port: 4444
1217
fast:
1318
modules:
1419
config:

tests/web/WebDriverTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,9 @@ public function testSubmitHashButtonForm()
878878
$this->module->seeCurrentUrlEquals('/form/anchor#a');
879879
}
880880

881+
/**
882+
* @group window
883+
*/
881884
public function testJSErrorLoggingPositive()
882885
{
883886
// arrange
@@ -917,6 +920,9 @@ public function testJSErrorLoggingNegative()
917920
$this->assertCount(0, $steps);
918921
}
919922

923+
/**
924+
* @group window
925+
*/
920926
public function testMoveMouseOver()
921927
{
922928
$this->module->amOnPage('/form/click');
@@ -938,6 +944,9 @@ public function testMoveMouseOver()
938944
$this->module->see('click, offsetX: 8 - offsetY: 108');
939945
}
940946

947+
/**
948+
* @group window
949+
*/
941950
public function testLeftClick()
942951
{
943952
$this->module->amOnPage('/form/click');
@@ -958,6 +967,9 @@ public function testLeftClick()
958967
$this->module->see('click, offsetX: 78 - offsetY: 183');
959968
}
960969

970+
/**
971+
* @group window
972+
*/
961973
public function testRightClick()
962974
{
963975
// actually not supported in phantomjs see https://github.com/ariya/phantomjs/issues/14005
@@ -1088,6 +1100,9 @@ public function testSwitchToIframe()
10881100

10891101
}
10901102

1103+
/**
1104+
* @group window
1105+
*/
10911106
public function testGrabPageSourceWhenNotOnPage()
10921107
{
10931108
$this->expectException('\Codeception\Exception\ModuleException');

0 commit comments

Comments
 (0)