Issue #3247901 by danflanagan8, longwave: ContentTranslationUITestBase should not rely on Classy

(cherry picked from commit 84ef68cf99)
merge-requests/634/merge
catch 2021-11-08 14:36:24 +00:00
parent 3ab6129942
commit c0dca8d030
8 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}

View File

@ -39,7 +39,7 @@ class ContentTestTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}

View File

@ -359,7 +359,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
];
$this->drupalGet($entity->toUrl('edit-form'));
$this->submitForm($edit, $this->getFormSubmitAction($entity, $langcode));
$this->assertSession()->elementExists('xpath', '//div[contains(@class, "error")]//ul');
$this->assertSession()->elementExists('xpath', '//div[@aria-label="Error message"]//ul');
$metadata = $this->manager->getTranslationMetadata($entity->getTranslation($langcode));
$this->assertEquals($values[$langcode]['uid'], $metadata->getAuthor()->id(), 'Translation author correctly kept.');
$this->assertEquals($values[$langcode]['created'], $metadata->getCreatedTime(), 'Translation date correctly kept.');

View File

@ -17,7 +17,7 @@ class MediaTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}

View File

@ -32,7 +32,7 @@ class MenuLinkContentTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}

View File

@ -35,7 +35,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}

View File

@ -41,7 +41,7 @@ class TermTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
protected function setUp(): void {
$this->entityTypeId = 'taxonomy_term';

View File

@ -44,7 +44,7 @@ class UserTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
protected $defaultTheme = 'stark';
protected function setUp(): void {
$this->entityTypeId = 'user';