Skip to content

Commit bffcda1

Browse files
committed
MQE-2463: Mftf test extends from a skipped parent should be skipped
1 parent 57e515a commit bffcda1

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

dev/tests/verification/Resources/ExtendingSkippedTest.txt

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,6 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;
1919
*/
2020
class ExtendingSkippedTestCest
2121
{
22-
/**
23-
* @param AcceptanceTester $I
24-
* @throws \Exception
25-
*/
26-
public function _before(AcceptanceTester $I)
27-
{
28-
$I->amOnPage("/beforeUrl"); // stepKey: beforeAmOnPageKey
29-
}
30-
31-
/**
32-
* @param AcceptanceTester $I
33-
* @throws \Exception
34-
*/
35-
public function _after(AcceptanceTester $I)
36-
{
37-
$I->amOnPage("/afterUrl"); // stepKey: afterAmOnPageKey
38-
}
39-
40-
/**
41-
* @param AcceptanceTester $I
42-
* @throws \Exception
43-
*/
44-
public function _failed(AcceptanceTester $I)
45-
{
46-
$I->saveScreenshot(); // stepKey: saveScreenshot
47-
}
48-
4922
/**
5023
* @Severity(level = SeverityLevel::CRITICAL)
5124
* @Features({"TestModule"})
@@ -55,9 +28,8 @@ class ExtendingSkippedTestCest
5528
* @return void
5629
* @throws \Exception
5730
*/
58-
public function ExtendingSkippedTest(AcceptanceTester $I)
31+
public function ExtendingSkippedTest(AcceptanceTester $I, \Codeception\Scenario $scenario)
5932
{
60-
$I->comment("text");
61-
$I->comment("child");
33+
$scenario->skip("This test is skipped due to the following issues:\nParentTestIsSkipped");
6234
}
6335
}

0 commit comments

Comments
 (0)