Commit 0cf3f41f authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch 'feature/ISTWCMS-4885-lkmorlan-test-event-location-lookup' into '3.0.x'

ISTWCMS-4885: Test that location lookup menu exists

See merge request !230
parents b2c4efbd 79b43d19
......@@ -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