|
| 1 | +<?php |
| 2 | +namespace Magento\AcceptanceTest\_generated\Backend; |
| 3 | + |
| 4 | +use Magento\FunctionalTestingFramework\AcceptanceTester; |
| 5 | +use Magento\FunctionalTestingFramework\DataGenerator\Handlers\DataObjectHandler; |
| 6 | +use Magento\FunctionalTestingFramework\DataGenerator\Persist\DataPersistenceHandler; |
| 7 | +use Magento\FunctionalTestingFramework\DataGenerator\Objects\EntityDataObject; |
| 8 | +use \Codeception\Util\Locator; |
| 9 | +use Yandex\Allure\Adapter\Annotation\Features; |
| 10 | +use Yandex\Allure\Adapter\Annotation\Stories; |
| 11 | +use Yandex\Allure\Adapter\Annotation\Title; |
| 12 | +use Yandex\Allure\Adapter\Annotation\Description; |
| 13 | +use Yandex\Allure\Adapter\Annotation\Parameter; |
| 14 | +use Yandex\Allure\Adapter\Annotation\Severity; |
| 15 | +use Yandex\Allure\Adapter\Model\SeverityLevel; |
| 16 | +use Yandex\Allure\Adapter\Annotation\TestCaseId; |
| 17 | + |
| 18 | +/** |
| 19 | + */ |
| 20 | +class LocatorFunctionCest |
| 21 | +{ |
| 22 | + /** |
| 23 | + * @Parameter(name = "AcceptanceTester", value="$I") |
| 24 | + * @param AcceptanceTester $I |
| 25 | + * @return void |
| 26 | + */ |
| 27 | + public function LocatorFuctionTest(AcceptanceTester $I) |
| 28 | + { |
| 29 | + $I->amGoingTo("create entity that has the mergeKey: data"); |
| 30 | + $ReplacementPerson = DataObjectHandler::getInstance()->getObject("ReplacementPerson"); |
| 31 | + $data = new DataPersistenceHandler($ReplacementPerson); |
| 32 | + $data->createEntity(); |
| 33 | + $I->click(Locator::contains("'label'", "'Name'")); |
| 34 | + $I->click(Locator::contains("'label'", "'Name'")); |
| 35 | + $I->click(Locator::find("'img'", ['title' => 'diagram'])); |
| 36 | + $I->click(Locator::contains("string", "'Name'")); |
| 37 | + $I->click(Locator::contains("John", "'Name'")); |
| 38 | + $I->click(Locator::contains($data->getCreatedDataByName('key') . "", "'Name'")); |
| 39 | + $I->click(Locator::contains("string1", "string2")); |
| 40 | + $I->click(Locator::contains("John", "Doe")); |
| 41 | + $I->click(Locator::contains($data->getCreatedDataByName('key1') . "", "" . $data->getCreatedDataByName('key2'))); |
| 42 | + $I->click(Locator::contains("string1", "John")); |
| 43 | + $I->click(Locator::contains("string1", "" . $data->getCreatedDataByName('key1'))); |
| 44 | + $I->click(Locator::contains("John", "" . $data->getCreatedDataByName('key1'))); |
| 45 | + } |
| 46 | +} |
0 commit comments