Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
2d46652
E2E Test Trials. CCV2 JDK17. S2
giancorderoortiz Jul 16, 2025
d6ee859
force rebuild
giancorderoortiz Jul 17, 2025
ad408e7
run prettier fix
giancorderoortiz Jul 17, 2025
2df7078
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
giancorderoortiz Jul 18, 2025
9a0b02d
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
giancorderoortiz Jul 22, 2025
eac250f
Switch servers to Spartacus CCV2 S3
giancorderoortiz Jul 22, 2025
e8e2eb7
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
giancorderoortiz Jul 23, 2025
bdbb5ac
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
giancorderoortiz Jul 24, 2025
7176a42
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
giancorderoortiz Jul 28, 2025
5737335
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Jul 30, 2025
a300651
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Jul 31, 2025
7b2c23e
fix sync order history test
IustinSER Jul 31, 2025
375e633
fix correct consignment order in test
IustinSER Aug 4, 2025
dcc736a
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 4, 2025
4d98ad2
fix consignment tracking e2e
IustinSER Aug 4, 2025
5d48b9c
fix consignment tracking e2e
IustinSER Aug 5, 2025
e1a2c04
fix sync order history e2e
IustinSER Aug 5, 2025
4cd9c7e
fix currency checkout page e2e
IustinSER Aug 5, 2025
d52bc6e
fix consignment tracking e2e
IustinSER Aug 6, 2025
91a86be
fix b2b quick order e2e
IustinSER Aug 6, 2025
080a0b4
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 6, 2025
9281ebe
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 7, 2025
4e02abc
fix wait for order code
IustinSER Aug 7, 2025
795d859
fix order history e2e
IustinSER Aug 11, 2025
bf49db1
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 11, 2025
798fa0a
fix checkout as guest
IustinSER Aug 11, 2025
3653044
fix scroll to top button e2e
IustinSER Aug 11, 2025
827413d
fix cart e2e
IustinSER Aug 12, 2025
9f816c0
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 12, 2025
4eab5df
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
Zeyber Aug 13, 2025
d6c2d79
try orders-flow-e2e without double visit
Zeyber Aug 13, 2025
b94268d
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
Zeyber Aug 13, 2025
22ceae1
increase request timeout to 30 seconds on ci
Zeyber Aug 13, 2025
d10f299
test order-flows with desktop context
Zeyber Aug 14, 2025
ef66a76
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
Zeyber Aug 14, 2025
8b9a1a6
switch view contexts in order flow test
Zeyber Aug 14, 2025
4c3cd14
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 14, 2025
24d067c
fix createAccountFromGuest
IustinSER Aug 14, 2025
0293092
pass array to viewport context
Zeyber Aug 14, 2025
1eb28de
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
Zeyber Aug 14, 2025
efd8d28
split order history tests into separate files
Zeyber Aug 14, 2025
284b234
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
Zeyber Aug 14, 2025
215345d
test checkout with desktop context
IustinSER Aug 18, 2025
3b9c241
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 18, 2025
f270093
fix stabilize add to cart button wait
IustinSER Aug 19, 2025
e45bf70
fix stabilize seo checks
IustinSER Aug 19, 2025
ad27afa
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 20, 2025
d65bacc
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 21, 2025
914e2b0
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 22, 2025
fd33cce
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 25, 2025
3ee262b
fix checkout variants e2e
IustinSER Aug 25, 2025
73f0c50
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 25, 2025
1a86a57
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Aug 27, 2025
34fc525
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 1, 2025
95c006f
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 5, 2025
9edfc26
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 9, 2025
06d30c5
split checkout as guest tests into separate files
IustinSER Sep 9, 2025
78b6416
Add license header
github-actions[bot] Sep 9, 2025
7efe2b5
fix checkout flow
IustinSER Sep 9, 2025
b742c0e
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
IustinSER Sep 9, 2025
83cafe2
fix b2b order hisotry
IustinSER Sep 9, 2025
b287846
fix cart import export
IustinSER Sep 9, 2025
60a11a7
fix checkout flow
IustinSER Sep 9, 2025
678f141
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 10, 2025
d4b85d3
increase request timeout
IustinSER Sep 10, 2025
5e72e19
increase request timeout
IustinSER Sep 10, 2025
3655773
fix apparel checkout
IustinSER Sep 10, 2025
db0b761
stabilize SSR SEO
IustinSER Sep 10, 2025
373ef59
stabilize SSR SEO
IustinSER Sep 10, 2025
e327251
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 18, 2025
eda308e
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 19, 2025
c0fdd8c
Test new CCV2 server S5. CX JDK21 deployment
giancorderoortiz Sep 23, 2025
86e826e
Run all E2E tests
giancorderoortiz Sep 23, 2025
a36dd32
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 24, 2025
1a8e7fa
force usage of JDK21 mobile_public_android in tests
giancorderoortiz Sep 24, 2025
3c3b9f6
Merge branch 'develop' into feature-CXSPA-11042
giancorderoortiz Sep 24, 2025
09544ce
force usage of JDK21 mobile_public_android in tests for pipeline also
giancorderoortiz Sep 24, 2025
a09f758
fix small typo in e2e config file
giancorderoortiz Sep 24, 2025
1dce4a2
Update ci server with S5 for e2e tests
giancorderoortiz Sep 24, 2025
c8b705b
move b2b on 5200 port
FollowTheFlo Sep 24, 2025
d52f945
force rerun
giancorderoortiz Sep 25, 2025
08da0a5
run spa on 5200 for b2b on pipeline
FollowTheFlo Sep 25, 2025
1d207d3
correct oauthclientID
FollowTheFlo Sep 25, 2025
f25d1bb
fix prettier
FollowTheFlo Sep 25, 2025
9eeb970
move from s5 to s4
FollowTheFlo Sep 26, 2025
d72628d
dynamic cypress config
FollowTheFlo Sep 26, 2025
05639f4
Trigger Build
FollowTheFlo Sep 26, 2025
6e8f976
set jdk21 as default
FollowTheFlo Sep 29, 2025
1f217d9
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Sep 30, 2025
53aa56b
simplify config
FollowTheFlo Sep 30, 2025
4c9492e
Merge branch 'develop' into feature-CXSPA-11042
FollowTheFlo Sep 30, 2025
82d8e1d
remove unusued config files
FollowTheFlo Sep 30, 2025
68a36fc
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 1, 2025
20803b0
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 1, 2025
9a93ecf
style: fix prettier/lint errors
IustinSER Oct 1, 2025
0d95af4
switch to S1
FollowTheFlo Oct 1, 2025
e956f89
switch to S1
FollowTheFlo Oct 1, 2025
06c7a79
fix url
FollowTheFlo Oct 1, 2025
12b1ef7
back to S4
FollowTheFlo Oct 1, 2025
b1cbd89
Merge branch 'develop' into feature-CXSPA-11042
FollowTheFlo Oct 1, 2025
77719cb
Trigger Build
IustinSER Oct 2, 2025
4ff3c24
Trigger Build
IustinSER Oct 2, 2025
2c6a8d3
Trigger Build
IustinSER Oct 2, 2025
032b9ef
Trigger Build
IustinSER Oct 2, 2025
eff4ca4
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 3, 2025
dd406fc
add intercept for anonymous consent
IustinSER Oct 6, 2025
6b9e144
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
IustinSER Oct 6, 2025
58b5af6
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 6, 2025
c31dcf8
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 7, 2025
994bad3
Add license header
github-actions[bot] Oct 7, 2025
6340bb5
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 7, 2025
1227119
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 8, 2025
584e129
fix: handle banner in openAnonymousConsentsDialog
IustinSER Oct 8, 2025
0a2c000
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
IustinSER Oct 8, 2025
875b498
fix: stabilize SSR seoChecks timing
IustinSER Oct 8, 2025
3d46b11
safely handle missing added-to-cart dialog
IustinSER Oct 8, 2025
700a7fb
add retry and longer timeout for mini-cart count check
IustinSER Oct 8, 2025
d6f712e
switch servers to Spartacus CCV2 S2
IustinSER Oct 13, 2025
71f13bf
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 13, 2025
f6ced14
stabilize mini-cart check
IustinSER Oct 13, 2025
e6b3a23
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
IustinSER Oct 13, 2025
48e3f10
wait for cart refresh before export
IustinSER Oct 13, 2025
15f3547
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 14, 2025
736250d
fix checkout as guest
IustinSER Oct 14, 2025
4015bbc
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
IustinSER Oct 14, 2025
15232c4
Merge branch 'develop' into feature-CXSPA-10619_jdk17_e2es
IustinSER Oct 14, 2025
e9a3a55
Trigger Build
IustinSER Oct 14, 2025
65e209c
Merge branch 'feature-CXSPA-10619_jdk17_e2es' of https://github.com/S…
IustinSER Oct 14, 2025
994c515
Merge branch 'develop' into feature-CXSPA-11042
FollowTheFlo Oct 14, 2025
471f656
Switch servers to P4
IustinSER Oct 14, 2025
bb57726
S2 CCV2 JDK21 test
giancorderoortiz Oct 14, 2025
6129ccc
Merge branch 'feature-CXSPA-11042' into feature-CXSPA-10619_jdk21_e2es
IustinSER Oct 15, 2025
500c346
Merge branch 'develop' into feature-CXSPA-10619_jdk21_e2es
IustinSER Oct 15, 2025
e9b773c
Switch servers to S2
IustinSER Oct 15, 2025
7271ea3
Merge branch 'feature-CXSPA-10619_jdk21_e2es' of https://github.com/S…
IustinSER Oct 15, 2025
37af4e5
Trigger Build
IustinSER Oct 15, 2025
7abba30
fix guest login
IustinSER Oct 15, 2025
ecaee3e
Trigger Build
IustinSER Oct 16, 2025
ec0a098
stabilize shipping address form
IustinSER Oct 16, 2025
7f62e51
fixk checkout as guest
IustinSER Oct 16, 2025
d4a6827
Merge branch 'develop' into feature-CXSPA-10619_jdk21_e2es
IustinSER Oct 20, 2025
a0f75a3
test: stabilize currency switch test on CI
IustinSER Oct 22, 2025
dfb61b7
fix checkout flow
IustinSER Oct 22, 2025
257b4c3
Merge branch 'develop' into feature-CXSPA-10619_jdk21_e2es
IustinSER Oct 23, 2025
f3ea954
run prettier fix
giancorderoortiz Oct 23, 2025
d998923
Force rerun
giancorderoortiz Oct 23, 2025
0776df6
Use right config file for running b2b tests in internal pipeline
giancorderoortiz Oct 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env-cmdrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"dev": {
"CX_BASE_URL": "https://40.76.109.9:9002"
"CX_BASE_URL": "https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud"
},
"s1": {
"CX_BASE_URL": "https://api.c432wmya2v-teamspart3-s1-public.model-t.myhybris.cloud"
},
"local": {
"CX_BASE_URL": "https://localhost:9002"
"CX_BASE_URL": "https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud"
},
"local-http": {
"CX_BASE_URL": "http://localhost:9002"
"CX_BASE_URL": "https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud"
},
"ci": {
"CX_BASE_URL": "https://20.83.184.244:9002"
"CX_BASE_URL": "https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud"
},
"ccv2": {
"CX_BASE_URL": "https://api.cg79x9wuu9-eccommerc1-p1-public.model-t.myhybris.cloud"
Expand Down
6 changes: 5 additions & 1 deletion ci-scripts/e2e-a11y-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ stop_pwa_app() {
build_and_start_pwa() {
export SPA_ENV="$1"
npm run build:csr
npm run start:pwa &
if [[ "$SPA_ENV" == *"b2b"* ]]; then
npm run start:pwa:b2b &
else
npm run start:pwa &
fi
sleep 10
}

Expand Down
66 changes: 32 additions & 34 deletions ci-scripts/e2e-cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,41 +164,39 @@ if [[ "${SSR}" = true ]]; then
npm run e2e:run:ci:ssr
fi
else
npm run start:pwa &

echo '-----'
echo "Running Cypress end to end tests"

if [ "${GITHUB_EVENT_NAME}" == "pull_request" ]; then
echo "Running Cypress end-to-end tests for pull request"

if [[ "${GITHUB_HEAD_REF}" == epic/* ]]; then
echo "Running full Cypress end-to-end tests for epic branch"
run_tests_for_suite "${SUITE}" "full"
else
echo "Running core Cypress end-to-end tests for pull requests"
run_tests_for_suite "${SUITE}" "core"
fi

elif [ "${GITHUB_EVENT_NAME}" == "push" ]; then
echo "Running Cypress end-to-end tests for push event"

if is_bot_commit; then
echo "Commit was made by Renovate Bot or Dependabot. Running core Cypress end-to-end tests"
run_tests_for_suite "${SUITE}" "core"
else
echo "Running full Cypress end-to-end tests"
run_tests_for_suite "${SUITE}" "full"
fi
if [[ "$SUITE" == *"b2b"* ]]; then
npm run start:pwa:b2b &
else
echo "Running full Cypress end-to-end tests"
run_tests_for_suite "${SUITE}" "full"
npm run start:pwa &
fi

#Force run vendor tests.
# echo "Force Running Cypress Vendor Product Configurator end-to-end tests"
# run_tests_for_suite ":vendor:product-configurator" "full"

# echo "Force Running Cypress Vendor CPQ end-to-end tests"
# run_tests_for_suite ":vendor:cpq" "full"
echo '-----'
echo "Running All Cypress end to end tests"
run_tests_for_suite "${SUITE}" "full"

# if [ "${GITHUB_EVENT_NAME}" == "pull_request" ]; then
# echo "Running Cypress end-to-end tests for pull request"
#
# if [[ "${GITHUB_HEAD_REF}" == epic/* ]]; then
# echo "Running full Cypress end-to-end tests for epic branch"
# run_tests_for_suite "${SUITE}" "full"
# else
# echo "Running core Cypress end-to-end tests for pull requests"
# run_tests_for_suite "${SUITE}" "core"
# fi
#
# elif [ "${GITHUB_EVENT_NAME}" == "push" ]; then
# echo "Running Cypress end-to-end tests for push event"
#
# if is_bot_commit; then
# echo "Commit was made by Renovate Bot or Dependabot. Running core Cypress end-to-end tests"
# run_tests_for_suite "${SUITE}" "core"
# else
# echo "Running full Cypress end-to-end tests"
# run_tests_for_suite "${SUITE}" "full"
# fi
# else
# echo "Running full Cypress end-to-end tests"
# run_tests_for_suite "${SUITE}" "full"
# fi
fi
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.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,17 @@
"prettier": "prettier --config ./.prettierrc --list-different \"{projects,feature-libs,core-libs,integration-libs}/**/*{.ts,.js,.json,.scss,.html}\"",
"prettier:fix": "prettier --config ./.prettierrc --list-different \"{projects,feature-libs,core-libs,integration-libs}/**/*{.ts,.js,.json,.scss,.html}\" --write",
"start": "env-cmd --no-override -e dev,b2c,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:b2b": "env-cmd --no-override -e dev,b2b,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:b2b": "env-cmd --no-override -e dev,b2b,$SPA_ENV nx serve storefrontapp --configuration=development --port=5200",
"start:ci": "env-cmd --no-override -e ci,b2c,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:ci:b2b": "env-cmd --no-override -e ci,b2b,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:ci:b2b": "env-cmd --no-override -e ci,b2b,$SPA_ENV nx serve storefrontapp --configuration=development --port=5200",
"start:opf": "env-cmd --no-override -e opf,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:opf:ssl": "env-cmd --no-override -e opf,$SPA_ENV nx serve storefrontapp --configuration=development --ssl",
"start:opf:b2b": "env-cmd --no-override -e b2b,opf,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:opf:b2b:ssl": "env-cmd --no-override -e b2b,opf,$SPA_ENV nx serve storefrontapp --configuration=development --ssl",
"start:punchout": "env-cmd --no-override -e punchout,$SPA_ENV nx serve storefrontapp --configuration=development",
"start:prod": "env-cmd --no-override -e dev,b2c,$SPA_ENV nx serve storefrontapp --configuration=production",
"start:pwa": " cd ./dist/storefrontapp/browser && http-server -p 4200 --silent --proxy http://localhost:4200?",
"start:pwa:b2b": " cd ./dist/storefrontapp/browser && http-server -p 5200 --silent --proxy http://localhost:5200?",
"test": "nx test",
"test:all-schematics": "set -e; npm --prefix ./projects/schematics test -- -u; for dir in feature-libs/* integration-libs/*; do (cd $dir && npm run test:schematics -- -u); done",
"test:libs": "concurrently \"nx test core --code-coverage\" \"nx test storefrontlib --code-coverage\" \"nx test cart --code-coverage\" \"nx test organization --code-coverage\" \"nx test storefinder --code-coverage\" \"nx test smartedit --code-coverage\" \"nx test asm --code-coverage\" \"nx test qualtrics --code-coverage\" \"nx test product --code-coverage\" \"nx test product-configurator --code-coverage\" \"nx test product-multi-dimensional --code-coverage\" \"nx test customer-ticketing --code-coverage\" \"nx test subscription-billing --code-coverage\" \"nx test cdc --code-coverage\" \"nx test s4-service --code-coverage\" \"nx test cdp --code-coverage\" \"nx test opps --code-coverage\" \"nx test setup --code-coverage\" \"nx test checkout --code-coverage\" \"nx test order --code-coverage\" \"nx test digital-payments --code-coverage\" \"nx test epd-visualization --code-coverage\" \"nx test pickup-in-store --code-coverage\" \"nx test s4om --code-coverage\" \"nx test cpq-quote --code-coverage\" \"nx test omf --code-coverage\" \"nx test requested-delivery-date --code-coverage\" \"nx test estimated-delivery-date --code-coverage\" \"nx test pdf-invoices --code-coverage\" \"nx test quote --code-coverage\" \"nx test opf --code-coverage\" \"nx test punchout --code-coverage\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
unifiedDefaultHeaderSlotsAcrossBreakpoints: false,
reserveSpaceForImagesOnPdpAndPlp: false,
lazyLoadImagesByDefault: false,
authorizationCodeFlowByDefault: false,
authorizationCodeFlowByDefault: true,
incrementProcessesCountForMergeCart: true,
dispatchLoginActionOnlyWhenTokenReceived: false,
defaultLayoutConfigWithoutPageFold: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
...baseConfig.env,
CLIENT_ID: 'asm_client',
API_URL:
'https://api.c432wmya2v-teamspart3-s4-public.model-t.myhybris.cloud',
'https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud',
JDK_VERSION: 'JDK21',
},
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <[email protected]>
* SPDX-FileCopyrightText: 2025 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
Expand All @@ -12,9 +11,13 @@ export default defineConfig({
...baseConfig,
env: {
...baseConfig.env,
CLIENT_ID: 'mobile_android_public',
API_URL:
'https://api.c432wmya2v-teamspart3-s4-public.model-t.myhybris.cloud',
JDK_VERSION: 'JDK21',
CLIENT_ID:
baseConfig?.env?.JDK_VERSION === 'JDK21'
? 'mobile_android_public_b2b'
: 'mobile_android',
},
e2e: {
...baseConfig.e2e,
baseUrl: 'http://localhost:5200',
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ export default defineConfig({
...baseConfig,
env: {
...baseConfig.env,
CLIENT_ID: 'mobile_android_public',
API_URL:
'https://api.c432wmya2v-teamspart3-s4-public.model-t.myhybris.cloud',
JDK_VERSION: 'JDK21',
CLIENT_ID:
baseConfig?.env?.JDK_VERSION === 'JDK21'
? 'mobile_android_public_b2b'
: 'mobile_android',
},
e2e: {
...baseConfig.e2e,
baseUrl: 'http://localhost:5200',
},
});
15 changes: 12 additions & 3 deletions projects/storefrontapp-e2e-cypress/cypress.config.ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@

import { defineConfig } from 'cypress';

const JDK_VERSION: string = 'JDK21';
const CLIENT_ID =
JDK_VERSION === 'JDK21' ? 'mobile_android_public' : 'mobile_android';

const API_URL =
JDK_VERSION === 'JDK21'
? 'https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud'
: 'https://api.c432wmya2v-teamspart3-s3-public.model-t.myhybris.cloud';

export default defineConfig({
defaultCommandTimeout: 30000,
requestTimeout: 30000,
Expand All @@ -18,18 +27,18 @@ export default defineConfig({
},
videoUploadOnPasses: false,
env: {
API_URL: 'https://20.83.184.244:9002',
API_URL,
BASE_SITE: 'electronics-spa',
BASE_LANG: 'en',
BASE_CURRENCY: 'USD',
CLIENT_ID: 'mobile_android',
CLIENT_ID,
CLIENT_SECRET: 'secret',
OCC_PREFIX: '/occ/v2',
OCC_PREFIX_USER_ENDPOINT: 'users',
OCC_PREFIX_ORDER_ENDPOINT: 'orders',
MAIL_CCV2_URL: 'https://mailhog-poc.westeurope.cloudapp.azure.com',
MAIL_CCV2_PREFIX: '/api/v1',
JDK_VERSION: 'JDK17',
JDK_VERSION,
},
e2e: {
// We've imported your old cypress plugins here.
Expand Down
25 changes: 18 additions & 7 deletions projects/storefrontapp-e2e-cypress/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,39 @@

import { defineConfig } from 'cypress';

const JDK_VERSION: string = 'JDK21';
const CLIENT_ID =
JDK_VERSION === 'JDK21' ? 'mobile_android_public' : 'mobile_android';

const API_URL =
JDK_VERSION === 'JDK21'
? 'https://api.c432wmya2v-teamspart3-s2-public.model-t.myhybris.cloud'
: 'https://api.c432wmya2v-teamspart3-s3-public.model-t.myhybris.cloud';

export default defineConfig({
defaultCommandTimeout: 10000,
requestTimeout: 15000,
defaultCommandTimeout: 30000,
requestTimeout: 30000,
projectId: 'k3nmep',
numTestsKeptInMemory: 100,
chromeWebSecurity: false,
video: true,
retries: {
runMode: 2,
openMode: 2,
},
videoUploadOnPasses: false,
env: {
CLIENT_ID: 'mobile_android',
CLIENT_SECRET: 'secret',
API_URL: 'https://40.76.109.9:9002',
API_URL,
BASE_SITE: 'electronics-spa',
BASE_LANG: 'en',
BASE_CURRENCY: 'USD',
CLIENT_ID,
CLIENT_SECRET: 'secret',
OCC_PREFIX: '/occ/v2',
OCC_PREFIX_USER_ENDPOINT: 'users',
OCC_PREFIX_ORDER_ENDPOINT: 'orders',
MAIL_CCV2_URL: 'https://mailhog-poc.westeurope.cloudapp.azure.com',
MAIL_CCV2_PREFIX: '/api/v1',
JDK_VERSION: 'JDK17',
JDK_VERSION,
},
e2e: {
// We've imported your old cypress plugins here.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
describe('Scroll to top button', () => {
beforeEach(() => {
cy.visit('/');
cy.scrollTo('bottom');
cy.get('.cx-scroll-to-top-btn').as('scrollBtn');

// close the cookie banner
cy.get('button').contains('Allow All').click();

cy.scrollTo('bottom');
cy.get('.cx-scroll-to-top-btn').as('scrollBtn');
});

it('should appear when the page is scrolled down', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ context('Anonymous consents - config flow', () => {
hideConsents: [STORE_USER_INFORMATION],
}
);
cy.intercept('GET', '**/users/anonymous/consenttemplates*').as(
'getConsentTemplates'
);

const homePage = waitForPage('homepage', 'getHomePage');
cy.visit('/');
cy.wait(`@${homePage}`).its('response.statusCode').should('eq', 200);
cy.wait('@getConsentTemplates')
.its('response.statusCode')
.should('eq', 200);
});

anonymousConfigTestFlow();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ context('Cart Import/Export', () => {
viewportContext(['mobile'], () => {
beforeEach(() => {
clearAllStorage();
cy.intercept('HEAD', '**/users/anonymous/consenttemplates?*', {
statusCode: 304,
}).as('headConsent');
cy.intercept('POST', '**/users/*/carts/*/entries?**').as('addToCart');
cy.intercept('GET', '**/users/*/carts/*?fields=**').as('refreshCart');
});

// Core test.
Expand Down
Loading
Loading