In #2587531: Convert Automated Tests to BrowserTestBase JavaScript Functional Tests were added to Extlink with a basic example which checks to see if an external link and mail to link were tagged as expected.
These tests need to be expanded to:
- svg with href #2855615: External Links not working after an href inside an SVG...
with/without extlinktest extlink class='0' #2821803: Missing variables and variable type mismatcheswith/without mailto- alert - warning box, postponed pending understanding of handling alerts in javascript functional tests #2939078: Cancel event in the external page disclaimer is not working properly?
target/target no override- Test #1672650: placing icon BEFORE link, not after
- regex exclude
- regex include
- css exclude
- css include
no follow #2870492: Allow rel="follow" to not be overridden- subdomains
- Test different domain types with regards to our regular expressions #2914838: (Sub-)domain detection not reliable..
- Add tests for administration form, setting each variable and saving.
Example of changing config:
https://api.drupal.org/api/drupal/core%21modules%21color%21tests%21src%2...
Example of link clicking:
https://www.drupal.org/docs/8/phpunit/phpunit-javascript-testing-tutorial
| Comment | File | Size | Author |
|---|---|---|---|
| #33 | 2961572-33-image-link-test.patch | 3.08 KB | angelamnr |
| #25 | 2961572-25.patch | 3.76 KB | elachlan |
| #23 | 2961572-23.patch | 3.68 KB | elachlan |
| #18 | 2961572-18.patch | 6.74 KB | elachlan |
| #16 | 2961572-16.patch | 6.79 KB | elachlan |
Comments
Comment #2
elachlan commentedComment #3
elachlan commentedComment #4
elachlan commentedComment #5
elachlan commentedComment #6
elachlan commentedComment #7
elachlan commentedComment #8
elachlan commentedComment #9
elachlan commentedComment #10
elachlan commentedComment #12
elachlan commentedComment #14
elachlan commentedComment #16
elachlan commentedComment #18
elachlan commentedComment #20
elachlan commentedComment #21
elachlan commentedComment #22
elachlan commentedComment #23
elachlan commentedComment #25
elachlan commentedComment #27
elachlan commentedComment #32
elachlan commentedComment #33
angelamnr commentedI added a test for external links on images.
Comment #35
neslee canil pinto@elachlan, i guess you have added all the tests for now. Thanks.
Comment #36
neslee canil pintoComment #37
neslee canil pinto