Skip to content

Commit 91451e4

Browse files
committed
fix(tests): update unit test for close button in title div\n\n- Update selector to target title text specifically ('.ja_title > div')\n- Ensure test passes with new close button markup structure\n- Bump version to 5.0.3 and update changelog
1 parent 3598e18 commit 91451e4

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
All notable changes to jAlert will be documented in this file.
44

5-
## [5.0.2] - 2024-01-XX
5+
## [5.0.3] - 2025-06-26
6+
7+
### 🐛 Bug Fixes
8+
9+
- **Test Compatibility**: Fixed unit test to account for close button being positioned inside title div
10+
- **Test Selector Update**: Updated test selector from `.ja_title` to `.ja_title > div` to target title text specifically
11+
- **Test Suite**: All 39 tests now pass with new close button positioning structure
12+
13+
## [5.0.2] - 2025-06-26
614

715
### 🐛 Bug Fixes
816

@@ -20,7 +28,7 @@ All notable changes to jAlert will be documented in this file.
2028

2129
---
2230

23-
## [5.0.1] - 2024-01-XX
31+
## [5.0.1] - 2025-06-26
2432

2533
### ✨ New Features
2634

@@ -41,7 +49,7 @@ All notable changes to jAlert will be documented in this file.
4149

4250
---
4351

44-
## [5.0.0] - 2024-01-XX
52+
## [5.0.0] - 2025-06-26
4553

4654
### 🚀 Major Release - Complete Modernization
4755

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "jAlert",
4-
"version": "5.0.2",
4+
"version": "5.0.3",
55
"description": "Simple jQuery (Modal | Popup | Lightbox | Alert) Plugin - ES5 compatible",
66
"main": "dist/jAlert.min.js",
77
"scripts": {

tests/unit/core.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('jAlert Core Functionality', () => {
1212
});
1313

1414
const alert = await testUtils.waitForElement('.jAlert');
15-
expect(alert.find('.ja_title').text()).toBe('Test Title');
15+
expect(alert.find('.ja_title > div').text()).toBe('Test Title');
1616
expect(alert.find('.ja_body').text()).toBe('Test Content');
1717
});
1818

0 commit comments

Comments
 (0)