on develop help sign in
Move the selenium test to own package
commitebb6d2c08b0f1fcc9e4840758df561a31d6a2f85 authorCarlo Nucera <carlo.nucera@protonmail.com> dateWed 27 May 2020, 13:37 (6 years ago) parente11755e
4 files changed+33−12
reflex-dom-core/reflex-dom-core.cabal−5 reflex-dom-test-selenium/LICENSE+12 reflex-dom-test-selenium/reflex-dom-test-selenium.cabal+21−7 reflex-dom-test-selenium/src/Reflex/Dom/Test/Selenium.hs → reflex-dom-test-selenium/src/Reflex/Dom/Test/Screenshot.hs
reflex-dom-core/reflex-dom-core.cabal−5
@@ -71,10 +71,6 @@ library
7171 exception-transformers == 0.4.*,
7272 ghcjs-dom >= 0.9.1.0 && < 0.10,
7373 jsaddle >= 0.9.0.0 && < 0.10,
74− process,
75− chrome-test-utils,
76− async,
77− jsaddle-warp,
7874 -- keycode-0.2 has a bug on firefox
7975 keycode >= 0.2.1 && < 0.3,
8076 lens >= 4.7 && < 5,
@@ -89,7 +85,6 @@ library
8985 text == 1.2.*,
9086 transformers >= 0.3 && < 0.6,
9187 network-uri >= 2.6.1 && < 2.7,
92− webdriver,
9388 zenc == 0.1.*
9489
9590 if impl(ghcjs)
reflex-dom-test-selenium/LICENSEnew file+12
@@ -0,0 +1,12 @@
1+Copyright (c) 2015, Obsidian Systems LLC
2+All rights reserved.
3+
4+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
10+3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
reflex-dom-test-selenium/reflex-dom-test-selenium.cabal+21−7
@@ -15,11 +15,13 @@ library
1515 hs-source-dirs: src
1616 build-depends:
1717 -- aeson >= 0.8 && < 1.5,
18− -- base >= 4.7 && < 4.14,
18+ async,
19+ base >= 4.7 && < 4.14,
1920 -- bifunctors >= 4.2 && < 6,
2021 -- bimap >= 0.3 && < 0.4,
2122 -- blaze-builder >= 0.4.1 && < 0.5,
22− -- bytestring == 0.10.*,
23+ bytestring == 0.10.*,
24+ chrome-test-utils,
2325 -- case-insensitive < 1.3,
2426 -- containers >= 0.6 && < 0.7,
2527 -- constraints >= 0.9 && < 0.12,
@@ -29,13 +31,16 @@ library
2931 -- dependent-sum >= 0.6 && < 0.7,
3032 -- dependent-sum-template >= 0.1 && < 0.2,
3133 -- directory >= 1.2 && < 1.4,
32− -- exception-transformers == 0.4.*,
34+ exceptions,
35+ -- exception-transformers == 0.4.*
3336 -- ghcjs-dom >= 0.9.1.0 && < 0.10,
34− -- jsaddle >= 0.9.0.0 && < 0.10,
37+ jsaddle >= 0.9.0.0 && < 0.10,
38+ jsaddle-warp,
39+ http-types,
40+ network,
3541 -- process,
3642 -- chrome-test-utils,
3743 -- async,
38− -- jsaddle-warp,
3944 -- -- keycode-0.2 has a bug on firefox
4045 -- keycode >= 0.2.1 && < 0.3,
4146 -- lens >= 4.7 && < 5,
@@ -45,16 +50,25 @@ library
4550 -- random >= 1.1 && < 1.2,
4651 -- ref-tf == 0.4.*,
4752 -- reflex >= 0.6.2 && < 0.8,
53+ reflex-dom-core,
54+ process,
55+ which,
4856 -- semigroups >= 0.16 && < 0.20,
4957 -- stm >= 2.4 && < 2.6,
50− -- text == 1.2.*,
58+ silently,
59+ wai,
60+ warp,
61+ text == 1.2.*,
62+ websockets,
63+ hspec-webdriver,
64+ webdriver
5165 -- transformers >= 0.3 && < 0.6,
5266 -- network-uri >= 2.6.1 && < 2.7,
5367 -- webdriver,
5468 -- zenc == 0.1.*
5569
5670 exposed-modules:
57− Reflex.Dom.Test.Selenium
71+ Reflex.Dom.Test.Screenshot
5872
5973 default-language: Haskell98
6074 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively
reflex-dom-test-selenium/src/Reflex/Dom/Test/Selenium.hs → reflex-dom-test-selenium/src/Reflex/Dom/Test/Screenshot.hsrenamed

The content is the same.