Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

Issue tags: +D8MI, +language-config

Yay! Did you forgot to post the patch? :)

kfritsche’s picture

Status: Needs work » Needs review
Issue tags: -D8MI, -language-config
FileSize
6.03 KB

Attached tests for

  • custom blocks listings
  • contact forms listings
  • formats listings
  • shortcut listings
  • maintenance settings page
  • site information settings page
  • account settings page
  • role settings page

Because of #2019831: people and roles page broken and #2027577: Missing translate operation for maintenance settings page some tests should fail.

kfritsche’s picture

Issue tags: +D8MI, +language-config

You added tags, just while I was uploading the patch, which removed them.
Adding again.

YesCT’s picture

Issue tags: -D8MI, -language-config
+++ b/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.phpundefined
@@ -21,7 +21,7 @@ class ConfigTranslationListUITest extends WebTestBase {
-  public static $modules = array('block', 'contact', 'config_translation', 'menu', 'taxonomy');
+  public static $modules = array('block', 'contact', 'config_translation', 'menu', 'taxonomy', 'custom_block', 'shortcut');

@@ -41,6 +41,10 @@ class ConfigTranslationListUITest extends WebTestBase {
       'administer menu',
       'administer site configuration',
       'administer taxonomy',
+      'administer filters',
+      'administer shortcuts',
+      'administer users',
+      'administer permissions',
       'translate configuration',

alphabetical is nice.

+++ b/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.phpundefined
@@ -128,25 +228,19 @@ class ConfigTranslationListUITest extends WebTestBase {
+    // Test the role settings page.
+    $this->doSettingsPageTest('admin/people/roles');

Role is like the other entities, not a translate tab, but is a listing so needs a test role and then a do like the others.

Status: Needs review » Needs work
Issue tags: +D8MI, +language-config

The last submitted patch, config_translation-2027587-Add-more-tests-1.patch, failed testing.

kfritsche’s picture

Permissions and modules are now alphabetical orderer.
Also the roles test is fixed now and works like the others.

I attached also a merged patch which includes #2019831: people and roles page broken latest patch (#6), which should go green.

kfritsche’s picture

Status: Needs work » Needs review

And needs review... (I will never learn.)

Status: Needs review » Needs work

The last submitted patch, config_translation-2027587-5+2019831-6.patch, failed testing.

kfritsche’s picture

Status: Needs work » Needs review
FileSize
8.23 KB

Forgot to rebase so the patch removed changes from #2027577: Missing translate operation for maintenance settings page and thats caused it to fail.

YesCT’s picture

Status: Needs review » Needs work
+++ b/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.phpundefined
@@ -118,6 +130,119 @@ class ConfigTranslationListUITest extends WebTestBase {
+   * Tests the contact forms listing for the translate operation.
...
+  function doContactFormsListTest() {
...
+    // Get the custom block listing.
+    $this->drupalGet('admin/structure/contact');

this comment should say

// Get the contact form listing.

+++ b/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.phpundefined
@@ -118,6 +130,119 @@ class ConfigTranslationListUITest extends WebTestBase {
+   * Tests a given settings page for the translate operation.
...
+  function doSettingsPageTest($link) {
+    // Get the maintenance settings page.
+    $this->drupalGet($link);
+
+    $translate_link = $link . '/translate';
+    // Test if the link to translate the settings page is present.

this is testing a generic (given) settings page, not always the maintenance settings page.

Change to:
// Get the settings page.

We might also want to add info that the translate link is usually in a tab on the page?

David Hernández’s picture

Attached patch without fix for showing the test broken and patch with fixes mentioned by YesCT.

David Hernández’s picture

Status: Needs work » Needs review

changed status

YesCT’s picture

Status: Needs review » Reviewed & tested by the community

looks great!

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Committed, yay! Hiperyay! The commit message used was:

Issue #2027587 by kfritsche, David Hernández, dawehner, YesCT: Add tests for custom blocks, contact forms, formats, shortcut listings and settings pages.; fix for user roles from #2019831 included, otherwise tests would not pass; yay

YesCT’s picture

kfritsche’s picture

Status: Fixed » Needs review
FileSize
6.7 KB

Somehow only the patch from #2019831: people and roles page broken got in the test still needs to be get in.

Rerolled patch with only the patch from here without #2019831: people and roles page broken as its already in.

Gábor Hojtsy’s picture

Status: Needs review » Fixed

Sorry, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.