Skip to content

Commit

Permalink
Update element selector for tests (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
phdhiren authored Feb 2, 2023
1 parent 600555c commit feb5254
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/src/Functional/ApigeeX/BillingDetailsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function testBillingDetailsPageView() {

$this->assertSession()->responseNotContains('Connection error');

$this->assertCssElementContains('.region-content', 'PREPAID');
$this->assertCssElementContains('#content', 'PREPAID');

}

Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/BillingDetailsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function testBillingDetailsPageView() {
$this->assertSession()->responseNotContains('Access denied');
$this->assertSession()->responseNotContains('Connection error');
$this->assertSame($this->developer->getEmail(), $this->getSession()->getPage()->findById('edit-legal-company-name')->getValue());
$this->assertCssElementContains('#edit-billing .fieldset-wrapper', 'PREPAID');
$this->assertCssElementContains('#edit-billing div', 'PREPAID');
}

}
6 changes: 3 additions & 3 deletions tests/src/Functional/NavigationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ public function testNavigation() {
$session->linkExists('Purchased plans');
$session->linkExists('Prepaid balance');
$session->linkExists('Billing Details');
$this->assertCssElementContains('nav.tabs', 'Purchased plans');
$this->assertCssElementContains('nav.tabs', 'Prepaid balance');
$this->assertCssElementContains('nav.tabs', 'Billing Details');
$this->assertCssElementContains('nav[aria-labelledby="secondary-tabs-title"] li:nth-of-type(1) a', 'Purchased plans');
$this->assertCssElementContains('nav[aria-labelledby="secondary-tabs-title"] li:nth-of-type(2) a', 'Prepaid balance');
$this->assertCssElementContains('nav[aria-labelledby="secondary-tabs-title"] li:nth-of-type(3) a', 'Billing Details');
}

}

0 comments on commit feb5254

Please sign in to comment.