ExtendedParameterArrayTest.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace Magento\AcceptanceTest\_default\Backend;
  3. use Magento\FunctionalTestingFramework\AcceptanceTester;
  4. use Magento\FunctionalTestingFramework\DataGenerator\Handlers\CredentialStore;
  5. use Magento\FunctionalTestingFramework\DataGenerator\Handlers\PersistedObjectHandler;
  6. use \Codeception\Util\Locator;
  7. use Yandex\Allure\Adapter\Annotation\Features;
  8. use Yandex\Allure\Adapter\Annotation\Stories;
  9. use Yandex\Allure\Adapter\Annotation\Title;
  10. use Yandex\Allure\Adapter\Annotation\Description;
  11. use Yandex\Allure\Adapter\Annotation\Parameter;
  12. use Yandex\Allure\Adapter\Annotation\Severity;
  13. use Yandex\Allure\Adapter\Model\SeverityLevel;
  14. use Yandex\Allure\Adapter\Annotation\TestCaseId;
  15. /**
  16. */
  17. class ExtendParentDataTestCest
  18. {
  19. /**
  20. * @Features({"TestModule"})
  21. * @Parameter(name = "AcceptanceTester", value="$I")
  22. * @param AcceptanceTester $I
  23. * @return void
  24. * @throws \Exception
  25. */
  26. public function ExtendParentDataTest(AcceptanceTester $I)
  27. {
  28. $I->amGoingTo("create entity that has the stepKey: simpleDataKey");
  29. PersistedObjectHandler::getInstance()->createEntity(
  30. "simpleDataKey",
  31. "test",
  32. "extendParentData",
  33. [],
  34. null
  35. );
  36. $I->searchAndMultiSelectOption("#selector", ["otherName"]);
  37. $I->searchAndMultiSelectOption("#selector", ["extendName"]);
  38. $I->searchAndMultiSelectOption("#selector", ["item"]);
  39. $I->searchAndMultiSelectOption("#selector", [msq("extendParentData") . "prename"]);
  40. $I->searchAndMultiSelectOption("#selector", ["postnameExtend" . msq("extendParentData")]);
  41. }
  42. }