Skip to content

Commit

Permalink
Merge branch 'develop' into WV-312-replace-placeholder-avatar-with-ca…
Browse files Browse the repository at this point in the history
…ndidate-initials
  • Loading branch information
StevenSmith-code committed Aug 19, 2024
2 parents da144b0 + 9724fd4 commit c859a9f
Show file tree
Hide file tree
Showing 57 changed files with 2,774 additions and 1,492 deletions.
5 changes: 2 additions & 3 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
const config = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
stories: ['../src/js/common/stories/**/*.mdx', '../src/js/common/stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
],
framework: {
Expand All @@ -19,4 +18,4 @@ const config = {
autodocs: "tag",
},
};
export default config;
export default config;
25 changes: 25 additions & 0 deletions docs/testing/README_TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,31 @@ To run any tests in [the `specs` directory](../../tests/browserstack_automation/

When the test finishes, you should be able to see the video of browser tests on the BrowserStack Automate dashboard and video of the mobile apps on BrowserStack App Automate.


**Local Testing:**

To run any tests locally (For example, if you've added ID for an element and updated the corresponding page object file to use this new ID as the selector), you can run the test via BrowserStack on your locally hosted version of the WebApp as below:

(WebAppEnv) $ npm run wdio-local

[this will use the config file wdio.config.local.js which specifies that we are using browserstackLocal: true, instead of the regular file wdio.config.js]

Note: Update the 'WEB_APP_ROOT_URL' in the browserstack.config.js before triggering the test. i.e. URL where your local version of the WebApp is running.

**Additional useful options to run the tests**:

Execute test for one specific spec file:

(WebAppEnv) $ npm run wdio -- --spec [specs_dir_path]/[spec].js

(WebAppEnv) $ npm run wdio-local -- --spec [specs_dir_path]/[spec].js

Execute test for one specific test case within a spec file:

(WebAppEnv) $ npm run wdio -- --spec [specs_dir_path]/[spec].js --mochaOpts.grep <test_name>

(WebAppEnv) $ npm run wdio-local -- --spec [specs_dir_path]/[spec].js --mochaOpts.grep <test_name>

---

[Go back to Readme Home](../../README.md)
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"wdio:setup": "node tests/browserstack_automation/buildMobileCapabilities.js",
"wdio": "wdio ./tests/browserstack_automation/config/wdio.config.js",
"wdio-local": "wdio ./tests/browserstack_automation/config/wdio.config.local.js",
"build": "node node/buildDateFile.js && npm run build-storybook && PRODUCTION=1 && MINIMIZED=1 webpack --mode production",
"buildCordova": "node node/buildDateFile.js && node node/buildSrcCordova && CORDOVA=1 && webpack --mode development && node node/logCompileDate.js",
"buildCordovaAndLinks": "node node/buildDateFile.js && node node/buildSrcCordova && CORDOVA=1 && webpack --mode development && node node/buildSymLinksRemote.js && bash ./node/unSymLinkIOS.sh && node node/logCompileDate.js",
Expand Down
3 changes: 3 additions & 0 deletions src/img/global/svg-icons/political-party-green-party.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/img/global/svg-icons/political-party-libertarian.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/img/global/svg-icons/political-party-working-families.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c859a9f

Please sign in to comment.