Skip to content

Commit e60861c

Browse files
committed
feat: add new selenium e2e tests and new UI lab pages (ExperienceShowcase, FlakyLab, PostLab) with styles
1 parent 6fc9a9b commit e60861c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2906
-363
lines changed

client/.env.browserstack.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# BrowserStack Credentials
22
# Get these from https://www.browserstack.com/accounts/settings
3-
BROWSERSTACK_USERNAME=your_username_here
4-
BROWSERSTACK_ACCESS_KEY=your_access_key_here
3+
BROWSERSTACK_USERNAME=pushkarkumar_9aSspu
4+
BROWSERSTACK_ACCESS_KEY=EwmbzdpW3HXzk4VLJCzB
55

66
# Optional: Set build information
77
BUILD_NUMBER=1

client/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React App Configuration
22
REACT_APP_API_URL=http://localhost:5010/api
3-
REACT_APP_APP_NAME=E-Commerce Store
3+
REACT_APP_APP_NAME=E-Commerce_Store
44

55
# Feature Flags
66
REACT_APP_ENABLE_ANALYTICS=false

client/TEST_COMMENTS_SUMMARY.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,4 +1408,68 @@ This section documents the intentional bugs implemented for targeted 9ABF testin
14081408
- **Verification**: Tests validate that bugs are properly triggered and detectable
14091409
- **Coverage**: Bugs span checkout flow, cart management, authentication, and validation
14101410

1411-
This targeted bug implementation allows for surgical testing of specific failure scenarios while maintaining normal application functionality for regular users and test suites.
1411+
This targeted bug implementation allows for surgical testing of specific failure scenarios while maintaining normal application functionality for regular users and test suites.
1412+
1413+
1414+
### To fail the New flaky tests on second attmept , do the following changes: (file path : e2e/07-new/NFT-*.js)
1415+
1416+
Make them fail on the second run (product change set)
1417+
1418+
Apply these small changes to FlakyLab.jsx to introduce realistic product regressions. Run the same tests again—they will now fail for clear product reasons.
1419+
1420+
Filter regression
1421+
1422+
Original: products.filter(p => (showDiscountedOnly ? p.discounted : true))
1423+
1424+
Change to: products.filter(p => (showDiscountedOnly ? !p.discounted : true))
1425+
1426+
Shortlist badge regression
1427+
1428+
In the shortlist click handler, replace:
1429+
1430+
sessionStorage.setItem('shortlistCount', String(n));
1431+
1432+
1433+
With:
1434+
1435+
sessionStorage.setItem('favCount', String(n));
1436+
1437+
1438+
The badge still reads shortlistCount, so it doesn’t update.
1439+
1440+
Sorting regression
1441+
1442+
Replace numeric compare:
1443+
1444+
return [...filtered].sort((a, b) => a.price - b.price);
1445+
1446+
1447+
With a string compare on formatted numbers:
1448+
1449+
return [...filtered].sort((a, b) => String(a.price.toFixed(2)).localeCompare(String(b.price.toFixed(2))));
1450+
1451+
1452+
Coupon total target regression
1453+
1454+
Change the rendered span from:
1455+
1456+
<span data-testid="order-total">Total: ${total.toFixed(2)}</span>
1457+
1458+
1459+
To:
1460+
1461+
<span data-testid="grand-total">Total: ${total.toFixed(2)}</span>
1462+
1463+
1464+
Leave the tests reading order-total, which no longer updates.
1465+
1466+
Tab panel hook-up regression
1467+
1468+
Change the pickup panel’s test id:
1469+
1470+
data-testid="panel-pickup"
1471+
1472+
1473+
To:
1474+
1475+
data-testid="pickup-panel"

client/browserstack.err

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[object Object]

client/browserstack.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"auth": {
3-
"username": "username",
4-
"access_key": "access_key"
3+
"username": "pushkarkumar_9aSspu",
4+
"access_key": "EwmbzdpW3HXzk4VLJCzB"
55
},
66
"browsers": [
77
{

client/browserstack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# =============================
44
# Add your BrowserStack userName and accessKey here or set BROWSERSTACK_USERNAME and
55
# BROWSERSTACK_ACCESS_KEY as env variables
6-
userName: 'username'
7-
accessKey: 'accesskey'
6+
userName: 'pushkarkumar_9aSspu'
7+
accessKey: 'EwmbzdpW3HXzk4VLJCzB'
88

99
# ======================
1010
# BrowserStack Reporting

client/log/events.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"measures":[{"name":"sdk:pre-test","entryType":"measure","startTime":80418.527167,"duration":458.2216250000056,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0},{"name":"sdk:automate:keep-alive","entryType":"measure","startTime":80419.869167,"duration":0.3175409999967087,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0},{"name":"sdk:hook","entryType":"measure","startTime":80906.639167,"duration":0.13504100000136532,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"hookType":"beforeAll"},{"name":"sdk:hook","entryType":"measure","startTime":80906.639167,"duration":10.814165999996476,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test","hookType":"beforeEach"},{"name":"sdk:driver:pre-initialization","entryType":"measure","startTime":80925.649667,"duration":1.617499999993015,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:driver:post-initialization","entryType":"measure","startTime":80929.496708,"duration":11.744458999994094,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":1819.0538750000123,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":2372.404500000004,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":4382.786458000002,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":6908.797875000004,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":8470.728333000006,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":10422.499792000002,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":12399.014500000005,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":14402.02016700001,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":16417.36604200001,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":18410.880000000005,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":20400.09425000001,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":22383.868292000014,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":24580.922750000012,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:hook","entryType":"measure","startTime":80906.639167,"duration":26984.160124999995,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test","hookType":"afterEach"},{"name":"sdk:automate:session-name","entryType":"measure","startTime":107890.494667,"duration":1301.2329579999932,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:automate:session-status","entryType":"measure","startTime":109191.865625,"duration":86.56479199999012,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":26392.847375000012,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:o11y:sync","entryType":"measure","startTime":109280.285,"duration":87.81479199999012,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:automate:session-status","entryType":"measure","startTime":109191.865625,"duration":770.5795419999922,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":28528.07645800001,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:hook","entryType":"measure","startTime":80906.639167,"duration":31416.861625000005,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test","hookType":"afterAll"},{"name":"request:https://collector-observability.browserstack.com/api/v1/batch","entryType":"measure","startTime":82918.53325,"duration":30406.23829200001,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:post-test","entryType":"measure","startTime":113325.397875,"duration":0.4485830000048736,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:automate:idle-timeout","entryType":"measure","startTime":113325.682208,"duration":0.11200000000826549,"detail":null,"success":true,"failure":null,"worker":"27368-1","platform":0,"testName":"WH-20 - WH-20 Test"},{"name":"sdk:proxy-setup","entryType":"measure","startTime":11336.232417,"duration":0.204583000000639,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:automate:keep-alive","entryType":"measure","startTime":11338.136375,"duration":0.18320800000037707,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:automate:local-start","entryType":"measure","startTime":11338.561375,"duration":52057.127083,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://hub.browserstack.com/next_hubs","entryType":"measure","startTime":63465.211208,"duration":434.24437500000204,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://api.browserstack.com/sdk/v1/event","entryType":"measure","startTime":11335.278292,"duration":52781.238625,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://hub-aps.browserstack.com/check","entryType":"measure","startTime":63900.478083,"duration":328.39970899999753,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://hub-apse.browserstack.com/check","entryType":"measure","startTime":63900.903,"duration":1041.7394170000043,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:automate:hub-management","entryType":"measure","startTime":63463.652792,"duration":1768.880124999996,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://hub-euw.browserstack.com/check","entryType":"measure","startTime":63900.577333,"duration":1330.8624169999966,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:setup","entryType":"measure","startTime":11103.866792,"duration":56247.303833,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:testhub:start","entryType":"measure","startTime":65233.955333,"duration":2089.3025839999973,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://collector-observability.browserstack.com/api/v2/builds","entryType":"measure","startTime":65257.979792,"duration":2060.239916000006,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:testhub:stop","entryType":"measure","startTime":114836.067417,"duration":507.95216600000276,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://collector-observability.browserstack.com/api/v1/builds/nuedimyk28em0tbk4eumjejiisby7sauilcd3mer/stop","entryType":"measure","startTime":114839.506917,"duration":484.5536659999925,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:automate:print-buildlink","entryType":"measure","startTime":115398.928167,"duration":719.8343749999913,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://api.browserstack.com/automate/builds.json","entryType":"measure","startTime":115408.303917,"duration":708.9681249999994,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://api.browserstack.com/sdk/v1/event","entryType":"measure","startTime":11335.278292,"duration":105291.31812499999,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"request:https://upload-observability.browserstack.com/client-logs/upload","entryType":"measure","startTime":116662.212583,"duration":2798.4211249999935,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:auto-capture","entryType":"measure","startTime":116628.0835,"duration":2834.5879580000037,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:o11y:print-buildlink","entryType":"measure","startTime":119468.565875,"duration":1.1998750000057044,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:cleanup","entryType":"measure","startTime":67351.568083,"duration":57215.15945899999,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:testhub:stop","entryType":"measure","startTime":114836.067417,"duration":9729.705375000005,"detail":null,"success":true,"failure":null,"worker":"27368-0"},{"name":"sdk:automate:local-stop","entryType":"measure","startTime":119852.863375,"duration":4711.135292000006,"detail":null,"success":true,"failure":null,"worker":"27368-0"}],"exceptions":[],"sdkRunId":"eaebdd69-3cee-4440-b203-118573bc6b95"}

0 commit comments

Comments
 (0)