From 140d876a7dc9b36464ce726830fee9a0bfa49c75 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sat, 13 Oct 2018 12:18:02 +0100 Subject: [PATCH] Better organisation of e2e tests --- assets/styles/base.css | 4 ++ assets/styles/base.min.css | 2 +- test.html | 115 --------------------------------- test/text.html | 128 +++++++++++++++++++++++++++++++++++++ 4 files changed, 133 insertions(+), 116 deletions(-) delete mode 100644 test.html create mode 100644 test/text.html diff --git a/assets/styles/base.css b/assets/styles/base.css index ade27d91..53522bb2 100644 --- a/assets/styles/base.css +++ b/assets/styles/base.css @@ -172,4 +172,8 @@ h6, display: none; } +[data-test-hook] { + margin-bottom: 24px; +} + /*===== End of Section comment block ======*/ diff --git a/assets/styles/base.min.css b/assets/styles/base.min.css index 295b630e..edf33ff1 100644 --- a/assets/styles/base.min.css +++ b/assets/styles/base.min.css @@ -1 +1 @@ -*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:after,:before{box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}hr,label{display:block}label{margin-bottom:8px;font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0}hr{margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width:620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:focus,.section a:visited{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo__img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}.is-hidden{display:none} \ No newline at end of file +*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:after,:before{box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}hr,label{display:block}label{margin-bottom:8px;font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0}hr{margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width:620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:focus,.section a:visited{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo__img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}.is-hidden{display:none}[data-test-hook]{margin-bottom:24px} \ No newline at end of file diff --git a/test.html b/test.html deleted file mode 100644 index c8fbdb6e..00000000 --- a/test.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - Choices - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -

Text inputs

- - - - - - - - - - - - - - - -
- -

Multiple select input

- -
- -

Single select input

- -
-
- - - - - - - - - diff --git a/test/text.html b/test/text.html new file mode 100644 index 00000000..1b4c1899 --- /dev/null +++ b/test/text.html @@ -0,0 +1,128 @@ + + + + + + + Choices + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +

Text inputs

+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +

Multiple select input

+ +
+ +

Single select input

+ +
+
+ + + + + + + + +