@@ -131,12 +131,13 @@ test.describe('Doc Comments', () => {
131131 await thread . getByRole ( 'paragraph' ) . first ( ) . fill ( 'This is a comment' ) ;
132132 await thread . locator ( '[data-test="save"]' ) . click ( ) ;
133133 await expect ( thread . getByText ( 'This is a comment' ) . first ( ) ) . toBeHidden ( ) ;
134+ await expect ( editor . getByText ( 'Hello' ) ) . toHaveClass ( 'bn-thread-mark' ) ;
134135
135- // Check background color changed
136136 await expect ( editor . getByText ( 'Hello' ) ) . toHaveCSS (
137137 'background-color' ,
138- 'rgba(237, 180, 0, 0.4)' ,
138+ 'color(srgb 0.882353 0.831373 0.717647 / 0.4)' ,
139139 ) ;
140+
140141 await editor . first ( ) . click ( ) ;
141142 await editor . getByText ( 'Hello' ) . click ( ) ;
142143
@@ -185,6 +186,7 @@ test.describe('Doc Comments', () => {
185186 await thread . getByText ( 'This is an edited comment' ) . first ( ) . hover ( ) ;
186187 await thread . locator ( '[data-test="resolve"]' ) . click ( ) ;
187188 await expect ( thread ) . toBeHidden ( ) ;
189+
188190 await expect ( editor . getByText ( 'Hello' ) ) . toHaveCSS (
189191 'background-color' ,
190192 'rgba(0, 0, 0, 0)' ,
@@ -196,18 +198,21 @@ test.describe('Doc Comments', () => {
196198
197199 await thread . getByRole ( 'paragraph' ) . first ( ) . fill ( 'This is a new comment' ) ;
198200 await thread . locator ( '[data-test="save"]' ) . click ( ) ;
201+ await expect ( editor . getByText ( 'Hello' ) ) . toHaveClass ( 'bn-thread-mark' ) ;
199202
200203 await expect ( editor . getByText ( 'Hello' ) ) . toHaveCSS (
201204 'background-color' ,
202- 'rgba(237, 180, 0, 0.4)' ,
205+ 'color(srgb 0.882353 0.831373 0.717647 / 0.4)' ,
203206 ) ;
207+
204208 await editor . first ( ) . click ( ) ;
205209 await editor . getByText ( 'Hello' ) . click ( ) ;
206210
207211 await thread . getByText ( 'This is a new comment' ) . first ( ) . hover ( ) ;
208212 await thread . locator ( '[data-test="moreactions"]' ) . first ( ) . click ( ) ;
209213 await getMenuItem ( thread , 'Delete comment' ) . click ( ) ;
210214
215+ await expect ( editor . getByText ( 'Hello' ) ) . not . toHaveClass ( 'bn-thread-mark' ) ;
211216 await expect ( editor . getByText ( 'Hello' ) ) . toHaveCSS (
212217 'background-color' ,
213218 'rgba(0, 0, 0, 0)' ,
@@ -263,7 +268,7 @@ test.describe('Doc Comments', () => {
263268
264269 await expect ( otherEditor . getByText ( 'Hello' ) ) . toHaveCSS (
265270 'background-color' ,
266- 'rgba(237, 180, 0, 0.4)' ,
271+ 'color(srgb 0.882353 0.831373 0.717647 / 0.4)' ,
267272 ) ;
268273
269274 // We change the role of the second user to reader
@@ -298,7 +303,7 @@ test.describe('Doc Comments', () => {
298303
299304 await expect ( otherEditor . getByText ( 'Hello' ) ) . toHaveCSS (
300305 'background-color' ,
301- 'rgba(237, 180, 0, 0.4)' ,
306+ 'color(srgb 0.882353 0.831373 0.717647 / 0.4)' ,
302307 ) ;
303308 await otherEditor . getByText ( 'Hello' ) . click ( ) ;
304309 await expect (
@@ -344,7 +349,7 @@ test.describe('Doc Comments', () => {
344349
345350 await expect ( editor1 . getByText ( 'Document One' ) ) . toHaveCSS (
346351 'background-color' ,
347- 'rgba(237, 180, 0, 0.4)' ,
352+ 'color(srgb 0.882353 0.831373 0.717647 / 0.4)' ,
348353 ) ;
349354
350355 await editor1 . getByText ( 'Document One' ) . click ( ) ;
0 commit comments