ArticlePageCest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Tests;
  4. use App\Tests\FunctionalTester;
  5. class ArticlePageCest
  6. {
  7. /**
  8. * @param FunctionalTester $I
  9. */
  10. public function viewContactsRu(FunctionalTester $I)
  11. {
  12. $I->amOnPage('/contacts');
  13. $I->wantTo('View contacts page (RU)');
  14. $I->seePageIsAvailable();
  15. $I->see('Контактная информация');
  16. }
  17. /**
  18. * @param FunctionalTester $I
  19. */
  20. public function viewContactsEn(FunctionalTester $I)
  21. {
  22. $I->amOnPage('/en/contacts');
  23. $I->wantTo('View contacts page (EN)');
  24. $I->seePageIsAvailable();
  25. $I->see('Contacts');
  26. }
  27. /**
  28. * @param FunctionalTester $I
  29. */
  30. public function viewContactsDe(FunctionalTester $I)
  31. {
  32. $I->amOnPage('/de/contacts');
  33. $I->wantTo('View contacts page (DE)');
  34. $I->seePageIsAvailable();
  35. $I->see('Kontakte');
  36. }
  37. /**
  38. * @param FunctionalTester $I
  39. */
  40. public function viewContactsPl(FunctionalTester $I)
  41. {
  42. $I->amOnPage('/pl/contacts');
  43. $I->wantTo('View contacts page (PL)');
  44. $I->seePageIsAvailable();
  45. $I->see('Łączność');
  46. }
  47. /**
  48. * @param FunctionalTester $I
  49. */
  50. public function viewContactsLt(FunctionalTester $I)
  51. {
  52. $I->amOnPage('/lt/contacts');
  53. $I->wantTo('View contacts page (LT)');
  54. $I->seePageIsAvailable();
  55. $I->see('Kontaktai');
  56. }
  57. /**
  58. * @param FunctionalTester $I
  59. */
  60. public function viewContactsCn(FunctionalTester $I)
  61. {
  62. $I->amOnPage('/cn/contacts');
  63. $I->wantTo('View contacts page (CN)');
  64. $I->seePageIsAvailable();
  65. $I->see('聯絡人');
  66. }
  67. /**
  68. * @param FunctionalTester $I
  69. */
  70. public function viewPrivacyPolicyRu(FunctionalTester $I)
  71. {
  72. $I->amOnPage('/privacy-policy');
  73. $I->wantTo('View privacy-policy page (RU)');
  74. $I->seePageIsAvailable();
  75. $I->see('Политика конфиденциальности');
  76. }
  77. /**
  78. * @param FunctionalTester $I
  79. */
  80. public function viewPrivacyPolicyEn(FunctionalTester $I)
  81. {
  82. $I->amOnPage('/en/privacy-policy');
  83. $I->wantTo('View privacy-policy page (EN)');
  84. $I->seePageIsAvailable();
  85. $I->see('Privacy policy');
  86. }
  87. /**
  88. * @param FunctionalTester $I
  89. */
  90. public function viewPrivacyPolicyDe(FunctionalTester $I)
  91. {
  92. $I->amOnPage('/de/privacy-policy');
  93. $I->wantTo('View privacy-policy page (DE)');
  94. $I->seePageIsAvailable();
  95. $I->see('Datenschutz-Bestimmungen');
  96. }
  97. /**
  98. * @param FunctionalTester $I
  99. */
  100. public function viewPrivacyPolicyPl(FunctionalTester $I)
  101. {
  102. $I->amOnPage('/pl/privacy-policy');
  103. $I->wantTo('View privacy-policy page (PL)');
  104. $I->seePageIsAvailable();
  105. $I->see('Polityka prywatności');
  106. }
  107. /**
  108. * @param FunctionalTester $I
  109. */
  110. public function viewPrivacyPolicyLt(FunctionalTester $I)
  111. {
  112. $I->amOnPage('/lt/privacy-policy');
  113. $I->wantTo('View privacy-policy page (LT)');
  114. $I->seePageIsAvailable();
  115. $I->see('Privatumo politika');
  116. }
  117. /**
  118. * @param FunctionalTester $I
  119. */
  120. public function viewPrivacyPolicyCn(FunctionalTester $I)
  121. {
  122. $I->amOnPage('/cn/privacy-policy');
  123. $I->wantTo('View privacy-policy page (CN)');
  124. $I->seePageIsAvailable();
  125. $I->see('隱私政策');
  126. }
  127. }