You are here

public function NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage in Drupal 10

Tests that RDF is displayed in the will be upgraded list.

Overrides NoMultilingualReviewPageTestBase::testMigrateUpgradeReviewPage

File

core/modules/rdf/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php, line 34

Class

NoMultilingualReviewPageTest
Tests review page.

Namespace

Drupal\Tests\rdf\Functional\Migrate

Code

public function testMigrateUpgradeReviewPage() {
  $this
    ->prepare();

  // Start the upgrade process.
  $this
    ->submitCredentialForm();
  $session = $this
    ->assertSession();
  $this
    ->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
  $session
    ->statusCodeEquals(200);

  // Confirm that RDF will be upgraded.
  $session
    ->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'RDF']");
  $session
    ->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'RDF']");
}