fb70262
commit fb70262
1 file changed
+231 -0
Showing 1 changed file+231-0
βΌopengrammar/TEST_GRAMMARLY_STYLE.md
+231-0
| @@ -0,0 +1,231 @@ | ||
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 | |