Issue #3304382 by bnjmnm, smustgrave: Core Functional tests should not depend on Classy or Starterkit

merge-requests/3308/head
catch 2023-01-27 15:47:37 +00:00
parent 5458c80783
commit a9301ea8a8
5 changed files with 12 additions and 12 deletions

View File

@ -37,7 +37,7 @@ class BrowserTestBaseTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'starterkit_theme';
protected $defaultTheme = 'stark';
/**
* Tests basic page test.

View File

@ -53,7 +53,7 @@ class ContentEntityFormFieldValidationFilteringTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'starterkit_theme';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
@ -135,9 +135,9 @@ class ContentEntityFormFieldValidationFilteringTest extends BrowserTestBase {
// The 'Test multiple' field is the only multi-valued field in the form, so
// try to add a new item for it. This tests the '#limit_validation_errors'
// property set by \Drupal\Core\Field\WidgetBase::formMultipleElements().
$assert_session->elementsCount('css', 'div#edit-test-multiple-wrapper div.form-type-textfield input', 1);
$assert_session->elementsCount('css', 'div#edit-test-multiple-wrapper div.js-form-type-textfield input', 1);
$this->submitForm([], 'Add another item');
$assert_session->elementsCount('css', 'div#edit-test-multiple-wrapper div.form-type-textfield input', 2);
$assert_session->elementsCount('css', 'div#edit-test-multiple-wrapper div.js-form-type-textfield input', 2);
// Now try to upload a file. This tests the '#limit_validation_errors'
// property set by

View File

@ -34,7 +34,7 @@ class DeleteMultipleFormTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'starterkit_theme';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
@ -93,8 +93,8 @@ class DeleteMultipleFormTest extends BrowserTestBase {
$this->drupalGet('/entity_test/delete');
$assert = $this->assertSession();
$assert->statusCodeEquals(200);
$assert->elementTextContains('css', '.page-title', 'Are you sure you want to delete these test entity - revisions, data table, and published interface entities?');
$list_selector = '#entity-test-mulrevpub-delete-multiple-confirm-form > div.item-list > ul';
$assert->elementTextContains('css', 'h1', 'Are you sure you want to delete these test entity - revisions, data table, and published interface entities?');
$list_selector = '#entity-test-mulrevpub-delete-multiple-confirm-form > ul[data-drupal-selector="edit-entities"]';
$assert->elementTextContains('css', $list_selector, 'entity1 (Original translation) - The following test entity - revisions, data table, and published interface translations will be deleted:');
$assert->elementTextContains('css', $list_selector, 'entity2 spanish');
$assert->elementTextContains('css', $list_selector, 'entity2 french');
@ -145,8 +145,8 @@ class DeleteMultipleFormTest extends BrowserTestBase {
$this->drupalGet('/entity_test_rev/delete_multiple');
$assert = $this->assertSession();
$assert->statusCodeEquals(200);
$assert->elementTextContains('css', '.page-title', 'Are you sure you want to delete these test entity - revisions entities?');
$list_selector = '#entity-test-rev-delete-multiple-confirm-form > div.item-list > ul';
$assert->elementTextContains('css', 'h1', 'Are you sure you want to delete these test entity - revisions entities?');
$list_selector = '#entity-test-rev-delete-multiple-confirm-form > ul[data-drupal-selector="edit-entities"]';
$assert->elementTextContains('css', $list_selector, 'entity1');
$assert->elementTextContains('css', $list_selector, 'entity2');
$delete_button = $this->getSession()->getPage()->findButton('Delete');

View File

@ -27,7 +27,7 @@ class EntityBundleListCacheTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'starterkit_theme';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}

View File

@ -15,7 +15,7 @@ class InstallerTranslationTest extends InstallerTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'starterkit_theme';
protected $defaultTheme = 'test_theme';
/**
* Overrides the language code in which to install Drupal.
@ -107,7 +107,7 @@ class InstallerTranslationTest extends InstallerTestBase {
$this->drupalGet('admin/config/development/performance');
$this->submitForm($edit, 'Save configuration');
$this->drupalGet('<front>');
$this->assertSession()->responseContains('starterkit_theme/css/components/action-links.css');
$this->assertSession()->responseContains('my_theme/css/my-container-inline.css');
// Verify the strings from the translation files were imported.
$test_samples = ['Save and continue', 'Anonymous'];