forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 9…
…998-integration-tests-exp
- Loading branch information
Showing
25 changed files
with
148 additions
and
858 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
scripts/dynamo/delete-order-and-opinion-search-feature-flags.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Deletes the external and internal advanced search (order and opinion) flags in the dynamo deploy table | ||
|
||
# Usage | ||
# ENV=exp1 ./delete-order-and-opinion-search-feature-flags.sh | ||
|
||
./check-env-variables.sh \ | ||
"ENV" \ | ||
"AWS_SECRET_ACCESS_KEY" \ | ||
"AWS_ACCESS_KEY_ID" | ||
|
||
aws dynamodb delete-item --region us-east-1 --table-name "efcms-deploy-${ENV}" --key '{"pk":{"S":"external-opinion-search-enabled"},"sk":{"S":"external-opinion-search-enabled"}}' | ||
aws dynamodb delete-item --region us-east-1 --table-name "efcms-deploy-${ENV}" --key '{"pk":{"S":"external-order-search-enabled"},"sk":{"S":"external-order-search-enabled"}}' | ||
aws dynamodb delete-item --region us-east-1 --table-name "efcms-deploy-${ENV}" --key '{"pk":{"S":"internal-opinion-search-enabled"},"sk":{"S":"internal-opinion-search-enabled"}}' | ||
aws dynamodb delete-item --region us-east-1 --table-name "efcms-deploy-${ENV}" --key '{"pk":{"S":"internal-order-search-enabled"},"sk":{"S":"internal-order-search-enabled"}}' | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { ADVANCED_SEARCH_TABS } from '../../shared/src/business/entities/EntityConstants'; | ||
import { loginAs, setOpinionSearchEnabled, setupTest } from './helpers'; | ||
|
||
describe('Opinion search', () => { | ||
const cerebralTest = setupTest(); | ||
|
||
afterAll(async () => { | ||
cerebralTest.closeSocket(); | ||
await setOpinionSearchEnabled(true, 'internal'); | ||
await setOpinionSearchEnabled(true, 'external'); | ||
}); | ||
|
||
describe('internal', () => { | ||
loginAs(cerebralTest, '[email protected]'); | ||
|
||
it('should preserve the warning message when the user routes back to search from their dashboard', async () => { | ||
await cerebralTest.runSequence('gotoDashboardSequence'); | ||
await cerebralTest.runSequence('gotoAdvancedSearchSequence'); | ||
|
||
const stateOfAdvancedSearch = cerebralTest.getState('advancedSearchTab'); | ||
|
||
expect(stateOfAdvancedSearch).toEqual(ADVANCED_SEARCH_TABS.CASE); | ||
}); | ||
}); | ||
|
||
describe('external', () => { | ||
loginAs(cerebralTest, '[email protected]'); | ||
|
||
it('should preserve the warning message when the user routes back to search from their dashboard', async () => { | ||
await cerebralTest.runSequence('gotoDashboardSequence'); | ||
await cerebralTest.runSequence('gotoAdvancedSearchSequence'); | ||
|
||
const stateOfAdvancedSearch = cerebralTest.getState('advancedSearchTab'); | ||
|
||
expect(stateOfAdvancedSearch).toEqual(ADVANCED_SEARCH_TABS.CASE); | ||
}); | ||
}); | ||
}); |
98 changes: 0 additions & 98 deletions
98
web-client/integration-tests/opinionSearchFeatureFlag.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.