-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### New Features * The SearchBar now supports displaying a loading indicator while a search is running. * The SearchBar also now has support for voice search. * We now support several new languages, including simplified/traditional Chinese and several variants of Arabic. * `universalLimit` config option (#1444) * Session tracking using the browser's session storage (#1452) * `querySource` can now be set at runtime using `ANSWERS.setQuerySource()` (#1464) * Display email validation error in QuestionSubmission (#1505) * Support for DirectAnswers on vertical searches (#1483) * Support providerOptions on the map (#1484) * Create entry points for multi-lang SDK bundles (#1501) ### Speed Improvements * replace IconComponent usages with handlebars partials (#1445) (#1451) (#1458) ### Infrastructure * Change CircleCI node_modules caching strategy to use package-lock.json instead of package.json (#1457) * `canary/latest` assets are now built with i18n support (#1459) * More tests + acceptance testing improvements * Automated publishing for the standalone SearchBar assets (#1529) ### SearchBar-only release notes * The SearchBar now supports displaying a loading indicator while a search is running. * The SearchBar also now has support for voice search.
- Loading branch information
Showing
149 changed files
with
11,374 additions
and
3,179 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
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 |
---|---|---|
|
@@ -5,4 +5,12 @@ export BROWSERSTACK_BUILD_ID="${CIRCLE_BRANCH} - ${CIRCLE_BUILD_NUM}" | |
COMMIT_MSG_TITLE=$(git log -n 1 --pretty=format:%s) | ||
export BROWSERSTACK_TEST_RUN_NAME=$COMMIT_MSG_TITLE | ||
|
||
npx testcafe "browserstack:[email protected],browserstack:safari" tests/acceptance/acceptancesuites/*.js -q | ||
if [[ $CIRCLE_BRANCH == release/* | ||
|| $CIRCLE_BRANCH == hotfix/* | ||
|| $CIRCLE_BRANCH == master | ||
|| $CIRCLE_BRANCH == support/* ]] | ||
then | ||
npx testcafe "browserstack:[email protected],browserstack:safari" --config-file ./.circleci/testcafe.json -q | ||
else | ||
npx testcafe -c 2 "browserstack:[email protected]" --config-file ./.circleci/testcafe.json -q | ||
fi |
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,11 @@ | ||
#!/bin/bash | ||
|
||
if [[ $CIRCLE_BRANCH == release/* | ||
|| $CIRCLE_BRANCH == hotfix/* | ||
|| $CIRCLE_BRANCH == master | ||
|| $CIRCLE_BRANCH == support/* ]] | ||
then | ||
npx testcafe -c 3 "chrome:headless,firefox:headless" --config-file ./.circleci/testcafe.json -q | ||
else | ||
npx testcafe -c 3 "chrome:headless" --config-file ./.circleci/testcafe.json -q | ||
fi |
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 |
---|---|---|
@@ -1,9 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Verifiy that the messages.pot file in the repo is up to date | ||
# If there are any git diffs after translations are extracted, the checked-in file is out of date | ||
npm run extract-translations | ||
git diff --exit-code conf/i18n/translations/messages.pot > /dev/null # send stdout to /dev/null to reduce clutter in the CI output | ||
diff_exit_code=$? | ||
|
||
cd conf/i18n/translations | ||
if test $diff_exit_code -eq 1 | ||
then | ||
echo "Extracted translations are out of date. Run 'npm run extract-translations' and commit the updated pot file." | ||
exit 1 | ||
else | ||
echo "The messages.pot translation file is up to date." | ||
fi | ||
|
||
for po_file in *.po | ||
do msgcmp $po_file messages.pot | ||
done | ||
# Verify that translations are present for all languages | ||
cd conf/i18n/translations | ||
if [[ $CIRCLE_BRANCH == release/* | ||
|| $CIRCLE_BRANCH == hotfix/* | ||
|| $CIRCLE_BRANCH == master | ||
|| $CIRCLE_BRANCH == support/* ]] | ||
then | ||
for po_file in *.po | ||
do msgcmp $po_file messages.pot | ||
done | ||
else | ||
echo "Skipping the verification that all translations are present" | ||
fi |
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,8 @@ | ||
#!/bin/bash | ||
export BROWSERSTACK_USE_AUTOMATE="1" | ||
export BROWSERSTACK_PROJECT_NAME="Answers SDK" | ||
export BROWSERSTACK_BUILD_ID="${CIRCLE_BRANCH} - ${CIRCLE_BUILD_NUM}" | ||
COMMIT_MSG_TITLE=$(git log -n 1 --pretty=format:%s) | ||
export BROWSERSTACK_TEST_RUN_NAME=$COMMIT_MSG_TITLE | ||
|
||
npx testcafe chrome:headless,firefox:headless,browserstack:safari,browserstack:edge tests/acceptance/useragent/useragentsuite.js --config-file ./.circleci/testcafe.json |
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,5 @@ | ||
{ | ||
"src": ["tests/acceptance/acceptancesuites/*.js", "!tests/acceptance/acceptancesuites/searchbaronlysuite.js"], | ||
"appCommand": "npx serve -l tcp://0.0.0.0:9999", | ||
"appInitDelay": 4000 | ||
} |
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,5 @@ | ||
{ | ||
"src": ["tests/acceptance/acceptancesuites/searchbaronlysuite.js"], | ||
"appCommand": "npx serve -l tcp://0.0.0.0:9999", | ||
"appInitDelay": 4000 | ||
} |
Oops, something went wrong.