fix(cc-widgets): End 2 End Tests stabilised #517
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
|
@CodeRabbit review |
| npx playwright test --grep "@chat" # Chat tests only | ||
| npx playwright test --grep "@telephony" # Voice tests only |
There was a problem hiding this comment.
Do we have this feature? I tried running this locally and it doesnt get any tests, fails with no test found. I think we can remove this part of filter by tag.
There was a problem hiding this comment.
addressed updated this section properly
| EXTENSION: 'extension', | ||
| CHAT: 'chat', | ||
| MULTI_SESSION: 'multiSession', | ||
| } as const; |
There was a problem hiding this comment.
I dont think we need this as const in the above two objects
| CHAT_EMAIL: 'playwright@test.com', | ||
| EMAIL_TEXT: '--This Email is generated due to playwright automation test for incoming Tasks---', | ||
| EXTENSION_CALL_INDICATOR: 'Ringing...', | ||
| } as const; |
| fs.writeFileSync(envPath, envContent, 'utf8'); | ||
| } | ||
|
|
||
| module.exports = {UpdateENVWithUserSets}; |
There was a problem hiding this comment.
Why are we exporting like this? We can just put export const function
| } | ||
| }); | ||
|
|
||
| UpdateENVWithUserSets(); |
There was a problem hiding this comment.
Rather than here, Can we put this inside the setup('OAuth') step?
mkesavan13
left a comment
There was a problem hiding this comment.
Please address the review comments by both me and Shreyas.
Rest looks good
| name: 'Test: Chrome', | ||
| // Run all tests except advanced tests and transfer/consult tests on Chrome | ||
| testIgnore: [/advanced-task-controls-test\.spec\.ts/], | ||
| name: 'SET_1', |
There was a problem hiding this comment.
Can we have one config JSON and then loop them through for all these projects? That way, we need not modify any same config for 5 times or more in future?
There was a problem hiding this comment.
great suggestion. addressed by moving the suite file name to testdata and reading threads and projects from testdata dynamically.
| workers: 1, | ||
| /* Reporter to use. See https://playwright.dev/docs/test-reporters */ | ||
| fullyParallel: true, | ||
| workers: 5, |
There was a problem hiding this comment.
Should we have 6 workers considering OAuth: Get Access Token being one of the projects?
There was a problem hiding this comment.
OAuth: Get Access Token, is the dependency for all the projects . so it should complete before any project starts.
# [1.28.0-ccwidgets.110](v1.28.0-ccwidgets.109...v1.28.0-ccwidgets.110) (2025-08-22) ### Bug Fixes * **cc-widgets:** End 2 End Tests stabilised ([#517](#517)) ([4dd2f74](4dd2f74))
|
🎉 This PR is included in version 1.28.0-ccwidgets.110 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
COMPLETES #https://jira-eng-sjc12.cisco.com/jira/browse/CAI-6525
This pull request addresses
refactoring e2e tests to make them stable and reduce execution time.
by making the following changes
created a testmanager to have all the apge setup logic at one place.
updated config with 5 threads(workers
).
Change Type
The following scenarios were tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
The GAI Coding Policy And Copyright Annotation Best Practices
Checklist before merging