-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CIVIC-1521] Fixed issue #1147: catch InvalidArgumentException in civ…
…ictheme_url_is_external (#1167)
- Loading branch information
Showing
2 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,10 @@ Feature: Content links processing | |
| field_c_p_content:value | <a href="http://exampleoverridden.com/external-dark-link">External dark link from overridden domain</a> | | ||
| field_c_p_content:format | civictheme_rich_text | | ||
| field_c_p_theme | dark | | ||
And "field_c_n_components" in "civictheme_page" "node" with "title" of "[TEST] Page 1" has "civictheme_content" paragraph: | ||
| field_c_p_content:value | <a href="///C:/Users/civictheme/invalid">Invalid link</a> | | ||
| field_c_p_content:format | civictheme_rich_text | | ||
| field_c_p_theme | dark | | ||
And "field_c_n_components" in "civictheme_page" "node" with "title" of "[TEST] Page 1" has "civictheme_content" paragraph: | ||
| field_c_p_content:value | <a href="tel:123412341234">Telephone link</a> | | ||
| field_c_p_content:format | civictheme_rich_text | | ||
|
@@ -108,4 +112,9 @@ Feature: Content links processing | |
And I should see an ".ct-basic-content a[href='http://exampleoverridden.com/external-dark-link'][target='_blank'].ct-content-link" element | ||
And I should not see an ".ct-basic-content a[href='http://exampleoverridden.com/external-dark-link'].ct-content-link.ct-content-link--external" element | ||
|
||
And I should see an ".ct-basic-content a[href='///C:/Users/civictheme/invalid'].ct-content-link" element | ||
And I should see an ".ct-basic-content a[href='///C:/Users/civictheme/invalid'].ct-theme-dark" element | ||
And I should see an ".ct-basic-content a[href='///C:/Users/civictheme/invalid'][target='_blank'].ct-content-link" element | ||
And I should not see an ".ct-basic-content a[href='///C:/Users/civictheme/invalid'].ct-content-link.ct-content-link--external" element | ||
|
||
And I should see an ".ct-basic-content a[href='mailto:[email protected]'].ct-content-link.ct-theme-dark" element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters