Commit 79b43d19 authored by Liam Morland's avatar Liam Morland Committed by Igor Biki
Browse files

ISTWCMS-4885: Test that location lookup menu exists

parent b2c4efbd
......@@ -507,13 +507,14 @@ class UwWcmsBasicTest extends BrowserTestBase {
// permission again for late use.
user_role_grant_permissions('uw_role_content_author', ['create terms in uw_vocab_catalogs']);
}
}
// Test field_uw_event_map exists.
$this->drupalGet('node/add/uw_ct_event');
$this->assertSession()->statusCodeEquals(200);
$this->assertFieldByXPath('//input[@type="url" and @id="edit-field-uw-event-map-0-uri"]', NULL, 'Map link field exists.');
$this->assertSession()->pageTextContains('Optional: provide a link to a map with the event location (e.g. https://uwaterloo.ca/map/)');
if ($key === 'event') {
$this->assertFieldByXPath('//select[@id="edit-location-presets-select"]', NULL, 'Location lookup menu exists.');
// Test field_uw_event_map exists.
$this->assertFieldByXPath('//input[@type="url" and @id="edit-field-uw-event-map-0-uri"]', NULL, 'Map link field exists.');
$this->assertSession()->pageTextContains('Optional: provide a link to a map with the event location (e.g. https://uwaterloo.ca/map/)');
}
}
// Create a catalog term in order to create a catalog item.
$edit = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment