diff --git a/test-e2e/app/src/App.js b/test-e2e/app/src/App.js index b043edaa..2225b5f2 100644 --- a/test-e2e/app/src/App.js +++ b/test-e2e/app/src/App.js @@ -7,11 +7,13 @@ import RejectCookies from "./modules/reject-cookies"; import CookiesValue from "./modules/cookies-value"; import LocalStorageWarning from "./modules/localstorage-warning"; +const reduxDevToolsExtension = window?.__REDUX_DEVTOOLS_EXTENSION__; + const store = createStore( combineReducers({ dataProviders: storeManager.reducer, }), - window && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), + reduxDevToolsExtension && reduxDevToolsExtension(), ); storeManager.setStore(store, "dataProviders"); diff --git a/test-e2e/cypress-latest-no-plugin/src/App.css b/test-e2e/cypress-latest-no-plugin/src/App.css deleted file mode 100644 index c4034ce7..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/App.css +++ /dev/null @@ -1,14 +0,0 @@ -.App { - text-align: center; -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} diff --git a/test-e2e/cypress-latest-no-plugin/src/App.js b/test-e2e/cypress-latest-no-plugin/src/App.js deleted file mode 100644 index b043edaa..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/App.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Provider } from "react-redux"; -import { createStore, combineReducers } from "redux"; -import { storeManager } from "@data-provider/core"; -import "./App.css"; -import AcceptCookies from "./modules/accept-cookies"; -import RejectCookies from "./modules/reject-cookies"; -import CookiesValue from "./modules/cookies-value"; -import LocalStorageWarning from "./modules/localstorage-warning"; - -const store = createStore( - combineReducers({ - dataProviders: storeManager.reducer, - }), - window && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), -); - -storeManager.setStore(store, "dataProviders"); - -function App() { - return ( - -
-
-

Click cookies button and reload the page to see how value is maintained

- - - - -
-
-
- ); -} - -export default App; diff --git a/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.css b/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.css deleted file mode 100644 index 59ac774f..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.css +++ /dev/null @@ -1,20 +0,0 @@ -button.cookies-button { - color: #09d3ac; - padding: 10px; - font-size: 20px; - border: 1px solid #09d3ac; - background-color: #282828; - cursor:pointer; -} - -button.cookies-button:hover { - color: #09d3a0; - background-color: #222; -} - -button.cookies-button:disabled, button.cookies-button:disabled:hover { - opacity: 0.3; - color: #09d3ac; - background-color: #282828; - cursor:default; -} diff --git a/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.js deleted file mode 100644 index eed4823b..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.js +++ /dev/null @@ -1,22 +0,0 @@ -import PropTypes from "prop-types"; - -import "./CookiesButton.css"; - -export const CookiesButton = ({ visible, onClick, id, text, disabled }) => { - if (!visible) { - return null; - } - return ( - - ); -}; - -CookiesButton.propTypes = { - visible: PropTypes.bool, - onClick: PropTypes.func, - id: PropTypes.string, - text: PropTypes.string, - disabled: PropTypes.bool, -}; diff --git a/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/index.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/index.js deleted file mode 100644 index 84d03754..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import { CookiesButton } from "./CookiesButton"; - -export default CookiesButton; diff --git a/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/CookiesValue.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/CookiesValue.js deleted file mode 100644 index 53bac141..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/CookiesValue.js +++ /dev/null @@ -1,13 +0,0 @@ -import PropTypes from "prop-types"; - -export const CookiesValue = ({ value }) => { - return ( -

- Cookies are currently {value ? "accepted" : "rejected"} -

- ); -}; - -CookiesValue.propTypes = { - value: PropTypes.bool, -}; diff --git a/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/index.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/index.js deleted file mode 100644 index 600775e9..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import { CookiesValue } from "./CookiesValue"; - -export default CookiesValue; diff --git a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/actions.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/actions.js deleted file mode 100644 index 7c61f6ab..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/actions.js +++ /dev/null @@ -1,32 +0,0 @@ -import { userPreferences } from "./origins"; - -export const acceptCookies = () => { - // save value directly in another localStorage key for an easier assertions example - try { - localStorage.setItem("cookies-accepted", true); - } catch (err) { - console.log("Error setting cookies-accepted", err); - } - - return userPreferences.queries - .cookiesAccepted() - .update(true) - .catch((err) => { - console.log("Error setting user-preferences", err); - }); -}; - -export const rejectCookies = () => { - // save value directly in another localStorage key for an easier assertions example - try { - localStorage.setItem("cookies-accepted", false); - } catch (err) { - console.log("Error setting cookies-accepted", err); - } - return userPreferences.queries - .cookiesAccepted() - .update(false) - .catch((err) => { - console.log("Error setting user-preferences", err); - }); -}; diff --git a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/index.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/index.js deleted file mode 100644 index 7f5090a3..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./origins"; -export * from "./selectors"; -export * from "./actions"; diff --git a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/origins.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/origins.js deleted file mode 100644 index 8a69e67f..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/origins.js +++ /dev/null @@ -1,10 +0,0 @@ -import { LocalStorage } from "@data-provider/browser-storage"; - -export const userPreferences = new LocalStorage({ - id: "user-preferences", - storageFallback: false, -}); - -userPreferences.addQuery("cookiesAccepted", () => ({ - prop: "cookiesAccepted", -})); diff --git a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/selectors.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/selectors.js deleted file mode 100644 index da3ebf22..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/selectors.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Selector } from "@data-provider/core"; - -import { userPreferences } from "./origins"; - -export const cookiesAccepted = new Selector(userPreferences.queries.cookiesAccepted(), { - id: "cookies-accepted", -}); diff --git a/test-e2e/cypress-latest-no-plugin/src/index.css b/test-e2e/cypress-latest-no-plugin/src/index.css deleted file mode 100644 index 00183895..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/index.css +++ /dev/null @@ -1,8 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/test-e2e/cypress-latest-no-plugin/src/index.js b/test-e2e/cypress-latest-no-plugin/src/index.js deleted file mode 100644 index 9dbdad67..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import ReactDOM from "react-dom"; -import "./index.css"; -import App from "./App"; - -ReactDOM.render(, document.getElementById("root")); diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/AcceptCookies.js b/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/AcceptCookies.js deleted file mode 100644 index abc56b89..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/AcceptCookies.js +++ /dev/null @@ -1,20 +0,0 @@ -import { useData, useError } from "@data-provider/react"; - -import CookiesButton from "../../components/cookies-button"; -import { cookiesAccepted, acceptCookies } from "../../data/user-preferences"; - -const AcceptCookies = () => { - const accepted = useData(cookiesAccepted); - const error = useError(cookiesAccepted); - return ( - - ); -}; - -export default AcceptCookies; diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/index.js deleted file mode 100644 index 70e57414..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./AcceptCookies"; diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/CookiesValue.js b/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/CookiesValue.js deleted file mode 100644 index e93e6180..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/CookiesValue.js +++ /dev/null @@ -1,6 +0,0 @@ -import { withData } from "@data-provider/react"; - -import CookiesValue from "../../components/cookies-value"; -import { cookiesAccepted } from "../../data/user-preferences"; - -export default withData(cookiesAccepted, "value")(CookiesValue); diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/index.js deleted file mode 100644 index 3bf6c71f..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./CookiesValue"; diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css b/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css deleted file mode 100644 index 4b830708..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css +++ /dev/null @@ -1,3 +0,0 @@ -#localstorage-disabled-warning { - color: #ff9900; -} diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js b/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js deleted file mode 100644 index 1b55ac52..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js +++ /dev/null @@ -1,22 +0,0 @@ -import { useError } from "@data-provider/react"; - -import { cookiesAccepted } from "../../data/user-preferences"; - -import "./LocalStorageWarning.css"; - -const LocalStorageWarning = () => { - const error = useError(cookiesAccepted); - - if (!error) { - return null; - } - - return ( -

- ⚠️ LocalStorage is disabled. Received error:{" "} - {error.message} -

- ); -}; - -export default LocalStorageWarning; diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/index.js deleted file mode 100644 index c2ea00b0..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./LocalStorageWarning"; diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/RejectCookies.js b/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/RejectCookies.js deleted file mode 100644 index f915f6da..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/RejectCookies.js +++ /dev/null @@ -1,18 +0,0 @@ -import { useData } from "@data-provider/react"; - -import CookiesButton from "../../components/cookies-button"; -import { cookiesAccepted, rejectCookies } from "../../data/user-preferences"; - -const RejectCookies = () => { - const visible = useData(cookiesAccepted); - return ( - - ); -}; - -export default RejectCookies; diff --git a/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/index.js deleted file mode 100644 index 3e389adb..00000000 --- a/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./RejectCookies"; diff --git a/test-e2e/cypress-latest/src/App.css b/test-e2e/cypress-latest/src/App.css deleted file mode 100644 index c4034ce7..00000000 --- a/test-e2e/cypress-latest/src/App.css +++ /dev/null @@ -1,14 +0,0 @@ -.App { - text-align: center; -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} diff --git a/test-e2e/cypress-latest/src/App.js b/test-e2e/cypress-latest/src/App.js deleted file mode 100644 index b043edaa..00000000 --- a/test-e2e/cypress-latest/src/App.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Provider } from "react-redux"; -import { createStore, combineReducers } from "redux"; -import { storeManager } from "@data-provider/core"; -import "./App.css"; -import AcceptCookies from "./modules/accept-cookies"; -import RejectCookies from "./modules/reject-cookies"; -import CookiesValue from "./modules/cookies-value"; -import LocalStorageWarning from "./modules/localstorage-warning"; - -const store = createStore( - combineReducers({ - dataProviders: storeManager.reducer, - }), - window && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), -); - -storeManager.setStore(store, "dataProviders"); - -function App() { - return ( - -
-
-

Click cookies button and reload the page to see how value is maintained

- - - - -
-
-
- ); -} - -export default App; diff --git a/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.css b/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.css deleted file mode 100644 index 59ac774f..00000000 --- a/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.css +++ /dev/null @@ -1,20 +0,0 @@ -button.cookies-button { - color: #09d3ac; - padding: 10px; - font-size: 20px; - border: 1px solid #09d3ac; - background-color: #282828; - cursor:pointer; -} - -button.cookies-button:hover { - color: #09d3a0; - background-color: #222; -} - -button.cookies-button:disabled, button.cookies-button:disabled:hover { - opacity: 0.3; - color: #09d3ac; - background-color: #282828; - cursor:default; -} diff --git a/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.js b/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.js deleted file mode 100644 index eed4823b..00000000 --- a/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.js +++ /dev/null @@ -1,22 +0,0 @@ -import PropTypes from "prop-types"; - -import "./CookiesButton.css"; - -export const CookiesButton = ({ visible, onClick, id, text, disabled }) => { - if (!visible) { - return null; - } - return ( - - ); -}; - -CookiesButton.propTypes = { - visible: PropTypes.bool, - onClick: PropTypes.func, - id: PropTypes.string, - text: PropTypes.string, - disabled: PropTypes.bool, -}; diff --git a/test-e2e/cypress-latest/src/components/cookies-button/index.js b/test-e2e/cypress-latest/src/components/cookies-button/index.js deleted file mode 100644 index 84d03754..00000000 --- a/test-e2e/cypress-latest/src/components/cookies-button/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import { CookiesButton } from "./CookiesButton"; - -export default CookiesButton; diff --git a/test-e2e/cypress-latest/src/components/cookies-value/CookiesValue.js b/test-e2e/cypress-latest/src/components/cookies-value/CookiesValue.js deleted file mode 100644 index 53bac141..00000000 --- a/test-e2e/cypress-latest/src/components/cookies-value/CookiesValue.js +++ /dev/null @@ -1,13 +0,0 @@ -import PropTypes from "prop-types"; - -export const CookiesValue = ({ value }) => { - return ( -

- Cookies are currently {value ? "accepted" : "rejected"} -

- ); -}; - -CookiesValue.propTypes = { - value: PropTypes.bool, -}; diff --git a/test-e2e/cypress-latest/src/components/cookies-value/index.js b/test-e2e/cypress-latest/src/components/cookies-value/index.js deleted file mode 100644 index 600775e9..00000000 --- a/test-e2e/cypress-latest/src/components/cookies-value/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import { CookiesValue } from "./CookiesValue"; - -export default CookiesValue; diff --git a/test-e2e/cypress-latest/src/data/user-preferences/actions.js b/test-e2e/cypress-latest/src/data/user-preferences/actions.js deleted file mode 100644 index 7c61f6ab..00000000 --- a/test-e2e/cypress-latest/src/data/user-preferences/actions.js +++ /dev/null @@ -1,32 +0,0 @@ -import { userPreferences } from "./origins"; - -export const acceptCookies = () => { - // save value directly in another localStorage key for an easier assertions example - try { - localStorage.setItem("cookies-accepted", true); - } catch (err) { - console.log("Error setting cookies-accepted", err); - } - - return userPreferences.queries - .cookiesAccepted() - .update(true) - .catch((err) => { - console.log("Error setting user-preferences", err); - }); -}; - -export const rejectCookies = () => { - // save value directly in another localStorage key for an easier assertions example - try { - localStorage.setItem("cookies-accepted", false); - } catch (err) { - console.log("Error setting cookies-accepted", err); - } - return userPreferences.queries - .cookiesAccepted() - .update(false) - .catch((err) => { - console.log("Error setting user-preferences", err); - }); -}; diff --git a/test-e2e/cypress-latest/src/data/user-preferences/index.js b/test-e2e/cypress-latest/src/data/user-preferences/index.js deleted file mode 100644 index 7f5090a3..00000000 --- a/test-e2e/cypress-latest/src/data/user-preferences/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./origins"; -export * from "./selectors"; -export * from "./actions"; diff --git a/test-e2e/cypress-latest/src/data/user-preferences/origins.js b/test-e2e/cypress-latest/src/data/user-preferences/origins.js deleted file mode 100644 index 8a69e67f..00000000 --- a/test-e2e/cypress-latest/src/data/user-preferences/origins.js +++ /dev/null @@ -1,10 +0,0 @@ -import { LocalStorage } from "@data-provider/browser-storage"; - -export const userPreferences = new LocalStorage({ - id: "user-preferences", - storageFallback: false, -}); - -userPreferences.addQuery("cookiesAccepted", () => ({ - prop: "cookiesAccepted", -})); diff --git a/test-e2e/cypress-latest/src/data/user-preferences/selectors.js b/test-e2e/cypress-latest/src/data/user-preferences/selectors.js deleted file mode 100644 index da3ebf22..00000000 --- a/test-e2e/cypress-latest/src/data/user-preferences/selectors.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Selector } from "@data-provider/core"; - -import { userPreferences } from "./origins"; - -export const cookiesAccepted = new Selector(userPreferences.queries.cookiesAccepted(), { - id: "cookies-accepted", -}); diff --git a/test-e2e/cypress-latest/src/index.css b/test-e2e/cypress-latest/src/index.css deleted file mode 100644 index 00183895..00000000 --- a/test-e2e/cypress-latest/src/index.css +++ /dev/null @@ -1,8 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/test-e2e/cypress-latest/src/index.js b/test-e2e/cypress-latest/src/index.js deleted file mode 100644 index 9dbdad67..00000000 --- a/test-e2e/cypress-latest/src/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import ReactDOM from "react-dom"; -import "./index.css"; -import App from "./App"; - -ReactDOM.render(, document.getElementById("root")); diff --git a/test-e2e/cypress-latest/src/modules/accept-cookies/AcceptCookies.js b/test-e2e/cypress-latest/src/modules/accept-cookies/AcceptCookies.js deleted file mode 100644 index abc56b89..00000000 --- a/test-e2e/cypress-latest/src/modules/accept-cookies/AcceptCookies.js +++ /dev/null @@ -1,20 +0,0 @@ -import { useData, useError } from "@data-provider/react"; - -import CookiesButton from "../../components/cookies-button"; -import { cookiesAccepted, acceptCookies } from "../../data/user-preferences"; - -const AcceptCookies = () => { - const accepted = useData(cookiesAccepted); - const error = useError(cookiesAccepted); - return ( - - ); -}; - -export default AcceptCookies; diff --git a/test-e2e/cypress-latest/src/modules/accept-cookies/index.js b/test-e2e/cypress-latest/src/modules/accept-cookies/index.js deleted file mode 100644 index 70e57414..00000000 --- a/test-e2e/cypress-latest/src/modules/accept-cookies/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./AcceptCookies"; diff --git a/test-e2e/cypress-latest/src/modules/cookies-value/CookiesValue.js b/test-e2e/cypress-latest/src/modules/cookies-value/CookiesValue.js deleted file mode 100644 index e93e6180..00000000 --- a/test-e2e/cypress-latest/src/modules/cookies-value/CookiesValue.js +++ /dev/null @@ -1,6 +0,0 @@ -import { withData } from "@data-provider/react"; - -import CookiesValue from "../../components/cookies-value"; -import { cookiesAccepted } from "../../data/user-preferences"; - -export default withData(cookiesAccepted, "value")(CookiesValue); diff --git a/test-e2e/cypress-latest/src/modules/cookies-value/index.js b/test-e2e/cypress-latest/src/modules/cookies-value/index.js deleted file mode 100644 index 3bf6c71f..00000000 --- a/test-e2e/cypress-latest/src/modules/cookies-value/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./CookiesValue"; diff --git a/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.css b/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.css deleted file mode 100644 index 4b830708..00000000 --- a/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.css +++ /dev/null @@ -1,3 +0,0 @@ -#localstorage-disabled-warning { - color: #ff9900; -} diff --git a/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.js b/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.js deleted file mode 100644 index 1b55ac52..00000000 --- a/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.js +++ /dev/null @@ -1,22 +0,0 @@ -import { useError } from "@data-provider/react"; - -import { cookiesAccepted } from "../../data/user-preferences"; - -import "./LocalStorageWarning.css"; - -const LocalStorageWarning = () => { - const error = useError(cookiesAccepted); - - if (!error) { - return null; - } - - return ( -

- ⚠️ LocalStorage is disabled. Received error:{" "} - {error.message} -

- ); -}; - -export default LocalStorageWarning; diff --git a/test-e2e/cypress-latest/src/modules/localstorage-warning/index.js b/test-e2e/cypress-latest/src/modules/localstorage-warning/index.js deleted file mode 100644 index c2ea00b0..00000000 --- a/test-e2e/cypress-latest/src/modules/localstorage-warning/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./LocalStorageWarning"; diff --git a/test-e2e/cypress-latest/src/modules/reject-cookies/RejectCookies.js b/test-e2e/cypress-latest/src/modules/reject-cookies/RejectCookies.js deleted file mode 100644 index f915f6da..00000000 --- a/test-e2e/cypress-latest/src/modules/reject-cookies/RejectCookies.js +++ /dev/null @@ -1,18 +0,0 @@ -import { useData } from "@data-provider/react"; - -import CookiesButton from "../../components/cookies-button"; -import { cookiesAccepted, rejectCookies } from "../../data/user-preferences"; - -const RejectCookies = () => { - const visible = useData(cookiesAccepted); - return ( - - ); -}; - -export default RejectCookies; diff --git a/test-e2e/cypress-latest/src/modules/reject-cookies/index.js b/test-e2e/cypress-latest/src/modules/reject-cookies/index.js deleted file mode 100644 index 3e389adb..00000000 --- a/test-e2e/cypress-latest/src/modules/reject-cookies/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./RejectCookies";