From 9e1ead2d32544fc3e77d362c77c2f0882d44a90e Mon Sep 17 00:00:00 2001 From: Brandon Dail Date: Fri, 25 Aug 2017 11:25:13 -0500 Subject: [PATCH] Add test for URLS in attribute values --- packages/enzyme-test-suite/test/selector-spec.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/enzyme-test-suite/test/selector-spec.jsx b/packages/enzyme-test-suite/test/selector-spec.jsx index 5e7ddcef8..db548351f 100644 --- a/packages/enzyme-test-suite/test/selector-spec.jsx +++ b/packages/enzyme-test-suite/test/selector-spec.jsx @@ -307,6 +307,17 @@ describe('selectors', () => { ); expect(wrapper.find('[type="foo[1]"]').length).to.equal(1); }); + + it('URLs in attribute values', () => { + const wrapper = renderMethod( +
+ + +
, + ); + expect(wrapper.find('a[href="https://www.foo.com"]').length).to.equal(1); + expect(wrapper.find('a[href="foo.com"]').length).to.equal(1); + }); }); }); });