Skip to content

Commit

Permalink
Issue #6: Test that build page does not link to referenced entities
Browse files Browse the repository at this point in the history
  • Loading branch information
lkmorlan committed Jun 6, 2023
1 parent c1b6004 commit 9ea706a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ public function test(): void {
// @href, and text.
$this->assertSession()->elementExists('xpath', '//div[contains(@class, "block-bc-dc-edit-button")][h2[text() = "Data description"]]//a[@class = "btn btn-primary"][@aria-label = "Edit Data set description"][text() = "Edit"][starts-with(@href, "/node/2/edit?display=data_set_description")]');
$this->assertSession()->elementExists('xpath', '//div[contains(@class, "block-bc-dc-edit-button")][h2[text() = "Data columns"]]//a[@class = "btn btn-primary"][@aria-label = "Edit Data set columns"][text() = "Edit"][starts-with(@href, "/node/2/edit?display=data_set_columns")]');
// Build page does not link to referenced entities.
$this->assertSession()->elementNotExists('xpath', '//div[contains(@class, "field--type-entity-reference")]//a');

// Check for fields that are optional and have inline labels.
$fields_inline_optional = [
Expand Down

0 comments on commit 9ea706a

Please sign in to comment.