Swadhin Biswas

[email protected]
2026-02-28 12:27:54 +0600 committed NaN years ago
fb70262
commit fb70262
1 file changed
+231 -0
Showing 1 changed file+231-0
β–Όopengrammar/TEST_GRAMMARLY_STYLE.md
+231-0
1
+# πŸ§ͺ Testing Grammarly-Style Highlights
2
+
3
+## βœ… What Was Fixed
4
+
5
+**Before:**
6
+- ❌ Red underlines appeared but no popup
7
+- ❌ No way to see suggestions
8
+- ❌ No "Apply" button
9
+- ❌ Not like Grammarly
10
+
11
+**After:**
12
+- βœ… Red underlines appear
13
+- βœ… Click underline β†’ Popup shows
14
+- βœ… Popup has suggestion + Apply button
15
+- βœ… Click "Apply" β†’ Text is fixed
16
+- βœ… **EXACTLY like Grammarly!**
17
+
18
+---
19
+
20
+## 🎯 Step-by-Step Test
21
+
22
+### 1. Reload Extension
23
+
24
+```
25
+1. Go to chrome://extensions/
26
+2. Find OpenGrammar
27
+3. Click the reload icon πŸ”„
28
+4. Wait for "Extension reloaded" message
29
+```
30
+
31
+### 2. Test in Any Text Box
32
+
33
+**Open Gmail, Google Docs, or any text box and type:**
34
+
35
+```
36
+me and him went to the store and buyed some milks
37
+```
38
+
39
+**Expected Behavior:**
40
+
41
+1. **Red underline appears** under "me and him"
42
+2. **Red underline appears** under "buyed"
43
+
44
+### 3. Click the Underline
45
+
46
+**When you click the red underline:**
47
+
48
+βœ… **Popup should appear** showing:
49
+```
50
+β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
51
+β”‚ πŸ”΄ Grammar β”‚
52
+β”‚ β”‚
53
+β”‚ Use subject pronouns (I, β”‚
54
+β”‚ he, she, they, we) when β”‚
55
+β”‚ they are part of the β”‚
56
+β”‚ subject. β”‚
57
+β”‚ β”‚
58
+β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
59
+β”‚ β”‚ me and him β”‚ β”‚
60
+β”‚ β”‚ β†’ he and I β”‚ β”‚
61
+β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
62
+β”‚ β”‚
63
+β”‚ βœ“ Apply β”‚ βœ• Ignore β”‚
64
+β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
65
+```
66
+
67
+### 4. Click "Apply"
68
+
69
+**When you click "βœ“ Apply":**
70
+
71
+βœ… Text should change from:
72
+```
73
+me and him went to the store
74
+```
75
+
76
+To:
77
+```
78
+he and I went to the store
79
+```
80
+
81
+### 5. Test More Errors
82
+
83
+**Type these and verify underlines + popups:**
84
+
85
+| Error Type | Type This | Should Suggest |
86
+|------------|-----------|----------------|
87
+| **Spelling** | `teh cat` | `the cat` |
88
+| **Irregular Verb** | `I runned fast` | `I ran fast` |
89
+| **Modal + of** | `I could of gone` | `I could have gone` |
90
+| **Contraction** | `I dont know` | `I don't know` |
91
+| **Spelling** | `alot of people` | `a lot of people` |
92
+
93
+---
94
+
95
+## 🎨 Visual Guide
96
+
97
+### What You Should See:
98
+
99
+```
100
+Step 1: Type text
101
+β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
102
+β”‚ me and him went to the store β”‚
103
+β”‚ ~~~~~~~~ β”‚
104
+β”‚ ↑ red underline β”‚
105
+β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
106
+
107
+Step 2: Click underline
108
+β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
109
+β”‚ me and him went to the store β”‚
110
+β”‚ ~~~~~~~~ β”‚
111
+β”‚ β”‚ β”‚
112
+β”‚ β–Ό Popup appears β”‚
113
+β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
114
+β”‚ β”‚ πŸ”΄ Grammar β”‚ β”‚
115
+β”‚ β”‚ Use subject pronouns... β”‚ β”‚
116
+β”‚ β”‚ me and him β†’ he and I β”‚ β”‚
117
+β”‚ β”‚ βœ“ Apply β”‚ βœ• Ignore β”‚ β”‚
118
+β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
119
+β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
120
+
121
+Step 3: Click "Apply"
122
+β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
123
+β”‚ he and I went to the store β”‚
124
+β”‚ (text is fixed!) β”‚
125
+β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
126
+```
127
+
128
+---
129
+
130
+## πŸ› Troubleshooting
131
+
132
+### Issue: No Red Underlines
133
+
134
+**Solution:**
135
+1. Check backend is running: `curl http://localhost:8787/health`
136
+2. Reload extension in chrome://extensions/
137
+3. Refresh the page (F5)
138
+4. Type at least 5 characters
139
+
140
+### Issue: Underlines But No Popup
141
+
142
+**Solution:**
143
+1. **Click directly on the underline** (not near it)
144
+2. **Wait 500ms** while hovering
145
+3. **Check browser console** (F12) for errors
146
+4. **Reload extension** if needed
147
+
148
+### Issue: Popup Shows But "Apply" Doesn't Work
149
+
150
+**Solution:**
151
+1. Make sure you're in an **editable field**
152
+2. Try in a **simple text box** first (not complex editor)
153
+3. Check **browser console** for errors
154
+4. **Reload the page**
155
+
156
+### Issue: Popup Closes Immediately
157
+
158
+**Solution:**
159
+- This is fixed! Click directly on the underline
160
+- Popup should stay open until you click outside
161
+- If it still closes, reload the extension
162
+
163
+---
164
+
165
+## βœ… Success Checklist
166
+
167
+Test each feature:
168
+
169
+- [ ] Red underline appears under errors
170
+- [ ] Click underline β†’ Popup appears
171
+- [ ] Popup shows error explanation
172
+- [ ] Popup shows before/after comparison
173
+- [ ] "βœ“ Apply" button is visible
174
+- [ ] Click "Apply" β†’ Text is corrected
175
+- [ ] "βœ• Ignore" button is visible
176
+- [ ] Click "Ignore" β†’ Underline fades
177
+- [ ] Click outside popup β†’ Popup closes
178
+- [ ] Works in Gmail/Google Docs
179
+- [ ] Works in regular text boxes
180
+- [ ] Works in textareas
181
+
182
+---
183
+
184
+## 🎯 Grammarly Comparison
185
+
186
+| Feature | Grammarly | OpenGrammar |
187
+|---------|-----------|-------------|
188
+| Red underlines | βœ… | βœ… |
189
+| Click to show popup | βœ… | βœ… |
190
+| Shows suggestion | βœ… | βœ… |
191
+| Apply button | βœ… | βœ… |
192
+| Ignore button | βœ… | βœ… |
193
+| Click outside to close | βœ… | βœ… |
194
+| Before/after comparison | βœ… | βœ… |
195
+| Error explanation | βœ… | βœ… |
196
+| Color-coded by type | βœ… | βœ… |
197
+| Smooth animations | βœ… | βœ… |
198
+
199
+**OpenGrammar now works EXACTLY like Grammarly!** πŸŽ‰
200
+
201
+---
202
+
203
+## πŸš€ Next Steps
204
+
205
+1. **Test in multiple websites:**
206
+ - Gmail
207
+ - Google Docs
208
+ - Twitter/X
209
+ - Facebook
210
+ - Reddit
211
+
212
+2. **Test different error types:**
213
+ - Spelling (teh β†’ the)
214
+ - Grammar (me and him β†’ he and I)
215
+ - Verbs (buyed β†’ bought)
216
+ - Contractions (dont β†’ don't)
217
+
218
+3. **Test popup interactions:**
219
+ - Click to open
220
+ - Click Apply
221
+ - Click Ignore
222
+ - Click outside to close
223
+
224
+4. **Report any issues:**
225
+ - Check browser console (F12)
226
+ - Note which website
227
+ - Note what error type
228
+
229
+---
230
+
231
+**Happy Testing! The extension should now work exactly like Grammarly!** ✨
0
232