This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
integrate Storybook for further frontend development #98
Merged
Carla-Moz
merged 10 commits into
mozilla-rally:master
from
Carla-Moz:integrate-storybook
Sep 2, 2021
Merged
integrate Storybook for further frontend development #98
Carla-Moz
merged 10 commits into
mozilla-rally:master
from
Carla-Moz:integrate-storybook
Sep 2, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hamilton
suggested changes
Aug 26, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Largely looks good to me – thanks for taking this on! I think we can ditch all of the example components and assets that are not Rally-specific. They're not really needed. In the case of the mdx doc, that might be good to keep & make it rally-specific. What do you think?
Left a few specific comments as well ~
* flatten out and run one browser and config per overall run, and be more aggressive about re-trying obscured elements * run one combo of browser+extension+headlss per-test-run * add readme explaining screenshots dir * leave Chrome non-headless commented out, but fix command to make it easier to enable later * move the extension log scraping to a utility function * start figuring out how to load studies into firestore * use trigger function to create user documents * study add admin script, might move this to a cloud function * add rules so we can tests in emulator and deploy from here * add rules with explanations for why they are needed, and make the auth trigger create all the needed documents * switch to pulling studies from studies subcollection instead of enrolledStudies map, and update test extension to latest rally-sdk which does this as well * switch svelte app to use user studies subcollection * add watch target which runs emulators * add the studyId as a custom token, so we can check using firestore rules * user studies are now individual documents in firestore * no longer need to import canned data, set it up at the begining of the test instead * load data before running tests * load data before running tests * create user for test runs * comment * email user must sign in after verification to get new token with email_verified claim * wait for emulated google auth window to appear * remove debug * start the UI in watch mode * enable source maps, so debugging selenium tests is easy * add missing await, and search for the proper log messages * remove rally-sdk from main package.json, only need it when updating the test extension * keep studies list as typescript for now * fix entrypoint for functions * fix main entry point for functions * temporarily disable, debugging slow animations * more reliable way to wait for slow elements * run svelte in dev mode for run watch * load static studies list more reliably in watch mode * do not run prebuild * upgrade to latest rally-sdk, no longer fires the useless first pause state change callback * remove rally sdk * remove redundant command * remove firefox nightly support, just use release * rename test to something more appropriate * remove unused imports * more verbose logging if element is not found or clickable * import readline * update test extension to latest rally-sdk * remove rally from main package.json for circle * see if disabling notifications helps with intermittent test failures * await action, and load firefox extensions temporarily due to release firefox * only load firefox extensions when flag is passed * move rally ID generation to cloud function * use npm run dev vs. watch, for consistency * do not create userStudy docs from backend, the site should do this * change flag to emulator mode vs. test-integration mode * squelch preventAssignment message * make dev command output more self-explanatory, and also detail in README * remove unused dependency, and make build target build functions too * fix bad merge * iterate over studies list vs. hardcoded exampleStudy1, also prefer emulator-mode to integration-mode * use studyId vs addonId * put studyId as a value in the doc for expedience * use userStudies and studyID consistently, and watch whole collection not individual docs * remove debugging * use studyId not studyID * set studyId inside * pause before loading data * listen for changes after signup too, which resolves broken test * only check extension logs on firefox until we get cross-browser study cards * Remove debugging
Carla-Moz
force-pushed
the
integrate-storybook
branch
from
September 2, 2021 16:35
f45edf8
to
08062f3
Compare
Carla-Moz
added a commit
to Carla-Moz/rally-web-platform
that referenced
this pull request
Sep 3, 2021
* set up * updated README for storybook * applied requested changes * fixed conflicts * Cloud functions and rules (mozilla-rally#101) * flatten out and run one browser and config per overall run, and be more aggressive about re-trying obscured elements * run one combo of browser+extension+headlss per-test-run * add readme explaining screenshots dir * leave Chrome non-headless commented out, but fix command to make it easier to enable later * move the extension log scraping to a utility function * start figuring out how to load studies into firestore * use trigger function to create user documents * study add admin script, might move this to a cloud function * add rules so we can tests in emulator and deploy from here * add rules with explanations for why they are needed, and make the auth trigger create all the needed documents * switch to pulling studies from studies subcollection instead of enrolledStudies map, and update test extension to latest rally-sdk which does this as well * switch svelte app to use user studies subcollection * add watch target which runs emulators * add the studyId as a custom token, so we can check using firestore rules * user studies are now individual documents in firestore * no longer need to import canned data, set it up at the begining of the test instead * load data before running tests * load data before running tests * create user for test runs * comment * email user must sign in after verification to get new token with email_verified claim * wait for emulated google auth window to appear * remove debug * start the UI in watch mode * enable source maps, so debugging selenium tests is easy * add missing await, and search for the proper log messages * remove rally-sdk from main package.json, only need it when updating the test extension * keep studies list as typescript for now * fix entrypoint for functions * fix main entry point for functions * temporarily disable, debugging slow animations * more reliable way to wait for slow elements * run svelte in dev mode for run watch * load static studies list more reliably in watch mode * do not run prebuild * upgrade to latest rally-sdk, no longer fires the useless first pause state change callback * remove rally sdk * remove redundant command * remove firefox nightly support, just use release * rename test to something more appropriate * remove unused imports * more verbose logging if element is not found or clickable * import readline * update test extension to latest rally-sdk * remove rally from main package.json for circle * see if disabling notifications helps with intermittent test failures * await action, and load firefox extensions temporarily due to release firefox * only load firefox extensions when flag is passed * move rally ID generation to cloud function * use npm run dev vs. watch, for consistency * do not create userStudy docs from backend, the site should do this * change flag to emulator mode vs. test-integration mode * squelch preventAssignment message * make dev command output more self-explanatory, and also detail in README * remove unused dependency, and make build target build functions too * fix bad merge * iterate over studies list vs. hardcoded exampleStudy1, also prefer emulator-mode to integration-mode * use studyId vs addonId * put studyId as a value in the doc for expedience * use userStudies and studyID consistently, and watch whole collection not individual docs * remove debugging * use studyId not studyID * set studyId inside * pause before loading data * listen for changes after signup too, which resolves broken test * only check extension logs on firefox until we get cross-browser study cards * Remove debugging * got latest * got latest * setting up * resolved conflicts * returned tgconfig to original Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
Carla-Moz
added a commit
to Carla-Moz/rally-web-platform
that referenced
this pull request
Sep 3, 2021
* set up * updated README for storybook * applied requested changes * fixed conflicts * Cloud functions and rules (mozilla-rally#101) * flatten out and run one browser and config per overall run, and be more aggressive about re-trying obscured elements * run one combo of browser+extension+headlss per-test-run * add readme explaining screenshots dir * leave Chrome non-headless commented out, but fix command to make it easier to enable later * move the extension log scraping to a utility function * start figuring out how to load studies into firestore * use trigger function to create user documents * study add admin script, might move this to a cloud function * add rules so we can tests in emulator and deploy from here * add rules with explanations for why they are needed, and make the auth trigger create all the needed documents * switch to pulling studies from studies subcollection instead of enrolledStudies map, and update test extension to latest rally-sdk which does this as well * switch svelte app to use user studies subcollection * add watch target which runs emulators * add the studyId as a custom token, so we can check using firestore rules * user studies are now individual documents in firestore * no longer need to import canned data, set it up at the begining of the test instead * load data before running tests * load data before running tests * create user for test runs * comment * email user must sign in after verification to get new token with email_verified claim * wait for emulated google auth window to appear * remove debug * start the UI in watch mode * enable source maps, so debugging selenium tests is easy * add missing await, and search for the proper log messages * remove rally-sdk from main package.json, only need it when updating the test extension * keep studies list as typescript for now * fix entrypoint for functions * fix main entry point for functions * temporarily disable, debugging slow animations * more reliable way to wait for slow elements * run svelte in dev mode for run watch * load static studies list more reliably in watch mode * do not run prebuild * upgrade to latest rally-sdk, no longer fires the useless first pause state change callback * remove rally sdk * remove redundant command * remove firefox nightly support, just use release * rename test to something more appropriate * remove unused imports * more verbose logging if element is not found or clickable * import readline * update test extension to latest rally-sdk * remove rally from main package.json for circle * see if disabling notifications helps with intermittent test failures * await action, and load firefox extensions temporarily due to release firefox * only load firefox extensions when flag is passed * move rally ID generation to cloud function * use npm run dev vs. watch, for consistency * do not create userStudy docs from backend, the site should do this * change flag to emulator mode vs. test-integration mode * squelch preventAssignment message * make dev command output more self-explanatory, and also detail in README * remove unused dependency, and make build target build functions too * fix bad merge * iterate over studies list vs. hardcoded exampleStudy1, also prefer emulator-mode to integration-mode * use studyId vs addonId * put studyId as a value in the doc for expedience * use userStudies and studyID consistently, and watch whole collection not individual docs * remove debugging * use studyId not studyID * set studyId inside * pause before loading data * listen for changes after signup too, which resolves broken test * only check extension logs on firefox until we get cross-browser study cards * Remove debugging * got latest * got latest * setting up * resolved conflicts * returned tgconfig to original Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #91