Skip to content

Commit

Permalink
Added comments documenting modal hiding in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed Dec 11, 2024
1 parent 3ef58ab commit 96363ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/app/components/info-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Component from '@ember/component';
import { action } from '@ember/object';

export default class InfoModalComponent extends Component {
// We have manually overridden this to hide the modal by default when running tests in tests/index.html
open = !window.localStorage.hideMessage;

dontShowModalAgain = false;
Expand Down
3 changes: 2 additions & 1 deletion client/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
// The below hides the default modal from showing when running tests
window.localStorage.hideMessage = true;

window['_fs_host'] = 'fullstory.com';
window['_fs_script'] = 'edge.fullstory.com/s/fs.js';
window['_fs_org'] = 'o-19S9J2-na1';
Expand Down

0 comments on commit 96363ea

Please sign in to comment.