File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ test.describe("Unauthenticated Articles Page", () => {
6565 await page . goto ( "http://localhost:3000" ) ;
6666 // Waits for articles to be loaded
6767 await expect ( page . getByText ( "Read Full Article" ) . first ( ) ) . toBeVisible ( ) ;
68- page . getByText ( "Read Full Article" ) . first ( ) . click ( ) ;
68+ await page . getByText ( "Read Full Article" ) . first ( ) . click ( ) ;
6969 await page . waitForURL ( / ^ h t t p : \/ \/ l o c a l h o s t : 3 0 0 0 \/ a r t i c l e s \/ .* $ / ) ;
7070
7171 await expect ( page . getByPlaceholder ( "What do you think?" ) ) . toBeHidden ( ) ;
@@ -205,15 +205,12 @@ test.describe("Authenticated Articles Page", () => {
205205 await expect ( page . getByLabel ( "bookmark-trigger" ) ) . toBeVisible ( ) ;
206206 } ) ;
207207
208- test ( "Should post a comment on an article" , async ( {
209- page,
210- browserName,
211- } , workerInfo ) => {
208+ test ( "Should post a comment on an article" , async ( { page } , workerInfo ) => {
212209 const commentContent = `This is a great read. Thanks for posting! Sent from ${ workerInfo . project . name } + ${ randomUUID ( ) } ` ;
213210 await page . goto ( "http://localhost:3000" ) ;
214211 // Waits for articles to be loaded
215212 await expect ( page . getByText ( "Read Full Article" ) . first ( ) ) . toBeVisible ( ) ;
216- page . getByText ( "Read Full Article" ) . first ( ) . click ( ) ;
213+ await page . getByText ( "Read Full Article" ) . first ( ) . click ( ) ;
217214 await page . waitForURL ( / ^ h t t p : \/ \/ l o c a l h o s t : 3 0 0 0 \/ a r t i c l e s \/ .* $ / ) ;
218215
219216 await expect ( page . getByPlaceholder ( "What do you think?" ) ) . toBeVisible ( ) ;
You can’t perform that action at this time.
0 commit comments