-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-buttons.html
More file actions
26 lines (23 loc) · 970 Bytes
/
test-buttons.html
File metadata and controls
26 lines (23 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<title>Button Test</title>
<script>
// Simple test to identify non-working buttons
function testAllButtons() {
const buttons = document.querySelectorAll('button');
console.log(`Found ${buttons.length} buttons`);
buttons.forEach((button, index) => {
const testId = button.getAttribute('data-testid');
const hasOnClick = button.onclick !== null || button.getAttribute('onclick');
const hasEventListener = button._listeners || false;
console.log(`Button ${index}: ${testId || 'no-testid'} - onClick: ${hasOnClick} - Text: ${button.textContent.trim()}`);
});
}
window.addEventListener('load', testAllButtons);
</script>
</head>
<body>
<p>This is a test file to check button functionality. Open browser console to see results.</p>
</body>
</html>