-
Notifications
You must be signed in to change notification settings - Fork 9
[MOB-12019] smoke test suite for inapp #537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #537 +/- ##
=======================================
Coverage 74.49% 74.49%
=======================================
Files 57 57
Lines 2741 2741
Branches 819 820 +1
=======================================
Hits 2042 2042
- Misses 658 698 +40
+ Partials 41 1 -40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left a minor question/suggestion.
| import { test, expect } from '@playwright/test'; | ||
| import { UUATestingPage } from './page-objects/pages/UUATestingPage'; | ||
|
|
||
| test.describe('UUA Testing Endpoints', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for the deletion of this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a first test written to help CI configure. will do follow up phases to increase test coverage for embedded messaging and UUA like what's done here for inapp
| @@ -1,7548 +0,0 @@ | |||
| Arguments: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add these files to .gitignore.
JIRA Ticket(s) if any
Description
Playwright E2E Test Suite for Web SDK
🎯 Overview
This PR adds a comprehensive, production-ready Playwright test suite for the Iterable Web SDK, focusing on in-app messaging features.
Key Stats:
📁 Test File Structure
🧪 Test Coverage
1. SDK Authentication (1 test)
setEmail()method validation2. Message Retrieval & Filtering (5 tests)
3. Error Handling (2 tests)
4. Display Positioning (6 tests)
5. Special URL Handling (2 tests)
iterable://protocol transformationaction://protocol transformation6. Close Button Features (3 tests)
7. Priority Sorting (1 test)
8. Real API Integration (4 tests)
🏗️ Architecture Highlights
Page Object Model (POM)
Clean separation of test logic and page interactions:
Custom Fixtures
Automatic setup/teardown for common scenarios:
Message Factory Pattern
Consistent, reusable message creation:
DRY Principles
test-constants.ts)message-helpers.ts)message-factory.ts)🎯 What We Test (Philosophy)
✅ SDK Behavior
✅ Integration Points
📈 Test Execution Time
Total CI Time: ~4-5 minutes (parallel execution)