@rechargeapps/storefront-client 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -52,3 +52,12 @@ recharge.init({ storeIdentifier: 'storeIdentifier' });
|
|
|
52
52
|
- run `npx http-server ./packages/storefront/client/dist`
|
|
53
53
|
- login to storefront
|
|
54
54
|
- run script from `test.html` in the dev tools
|
|
55
|
+
|
|
56
|
+
## Running e2e tests
|
|
57
|
+
|
|
58
|
+
You will need to set up 3 environment variables to a store to run locally. You will need to set `SHOPIFY_URL`, `SHOPIFY_USERNAME`, and `SHOPIFY_PASSWORD`. These should be to a store that you have a user associated with. This allows the e2e tests to test authenticated calls.
|
|
59
|
+
|
|
60
|
+
You can run the e2e tests 2 ways.
|
|
61
|
+
|
|
62
|
+
1. You can run via `yarn test:e2e --filter @rechargeapps/storefront-client` which will automatically start up the server needed and run through the tests on the command line.
|
|
63
|
+
2. Run `yarn build --filter @rechargeapps/storefront-client` to make sure you are using the latest build. You then need to host those files locally in a window via `yarn workspace @rechargeapps/storefront-client serve`. Then run `yarn workspace @rechargeapps/storefront-client cypress open` in another to get the GUI for cypress and run the tests.
|