generateAndCompareTest(self::DATA_REPLACEMENT_TEST); } /** * Tests replacement of $data.key$ references. * * @throws \Exception * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException */ public function testPersistedeferenceReplacementCest() { $this->generateAndCompareTest(self::PERSISTED_REPLACEMENT_TEST); } /** * Tests replacement of {{page.url}} references. Includes parameterized urls. * * @throws \Exception * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException */ public function testPageReferenceReplacementCest() { $this->generateAndCompareTest(self::PAGE_REPLACEMENT_TEST); } /** * Tests replacement of {{page.url}} reference for external page and incompatible action */ public function testExternalPageBadReference() { $this->expectException(TestReferenceException::class); $this->generateAndCompareTest("ExternalPageTestBadReference"); } /** * Tests replacement of {{Section.Element}} references. Includes parameterized elements. * * @throws \Exception * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException */ public function testSectionReferenceReplacementCest() { $this->generateAndCompareTest(self::SECTION_REPLACEMENT_TEST); } /** * Tests replacement of all characters into string literal references. * Used to ensure users can input everything but single quotes into 'stringLiteral' in parameterized selectors */ public function testCharacterReplacementCest() { $this->generateAndCompareTest("CharacterReplacementTest"); } }