You are here

public function ReviewPageTest::testMigrateUpgradeReviewPage in Drupal 10

Tests the review page.

Overrides NoMultilingualReviewPageTestBase::testMigrateUpgradeReviewPage

File

core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php, line 30

Class

ReviewPageTest
Tests Review page.

Namespace

Drupal\Tests\tracker\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 Tracker will be upgraded.
  $session
    ->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Tracker']");
  $session
    ->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Tracker']");
}