Skip to content

Commit

Permalink
Issue #6: Test that field_security_classification widget is radio but…
Browse files Browse the repository at this point in the history
…tons
  • Loading branch information
lkmorlan committed Jun 6, 2023
1 parent 50bc5b5 commit cbba711
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ public function test(): void {
// The other fields do not appear.
$this->assertSession()->pageTextNotContains('Data set column 1 description');

// Data description edit page.
$this->click('a[aria-label = "Edit Data set description"]');
$this->assertSession()->statusCodeEquals(200);
// Test that field_security_classification widget is radio buttons.
$this->assertSession()->elementExists('xpath', '//div[@id = "edit-field-security-classification"]//input[@type = "radio"]');

// Data set dashboard.
$this->drupalGet('user/1');
$this->assertSession()->statusCodeEquals(200);
Expand Down

0 comments on commit cbba711

Please sign in to comment.