Skip to content

Commit

Permalink
ACMS-4288: Fix Headless failing test with D11.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Oct 25, 2024
1 parent fd331fa commit 34bddb2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ protected function assertNextJsEntityTypeConfigure(): void {
$assert = $this->assertSession();
$page = $this->getSession()->getPage();
$this->drupalGet("admin/config/services/next/entity-types/add");
$assert->selectExists('id')->selectOption('node.test');
$assert->waitForElementVisible('css', '.settings-container');
$assert->selectExists('Entity type')->selectOption('node.test');
$this->assertTrue($assert->optionExists('id', 'node.test')->isSelected());
$assert->buttonExists('Save')->press();
$this->drupalGet("admin/config/services/next/entity-types/node.test/edit");
$assert->waitForText('Settings');
$assert->waitForText('Configure draft mode for this entity type.');
$assert->selectExists('site_resolver')->selectOption('site_selector');
$assert->assertWaitOnAjaxRequest();
$assert->buttonExists('Save')->press();
$assert->waitForText('Next.js sites');
$this->assertTrue($assert->optionExists('site_resolver', 'site_selector')->isSelected());
$page->checkField('sites[headless_site_one]');
Expand Down

0 comments on commit 34bddb2

Please sign in to comment.