File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using Microsoft . Playwright ;
2-
31namespace Abies . Conduit . E2E ;
42
53/// <summary>
@@ -54,7 +52,7 @@ public async Task ViewArticle_ShowsArticleContent()
5452
5553 // Should be on article page
5654 await Expect ( Page . GetByTestId ( "article-page" ) ) . ToBeVisibleAsync ( ) ;
57-
55+
5856 // Article content should be displayed
5957 await Expect ( Page . GetByRole ( AriaRole . Heading , new ( ) { Name = title } ) ) . ToBeVisibleAsync ( ) ;
6058 await Expect ( Page . GetByText ( body ) ) . ToBeVisibleAsync ( ) ;
@@ -81,11 +79,11 @@ public async Task EditArticle_AuthorCanModify()
8179 // Wait for form to load with existing values - wait for the title to be populated
8280 var titleInput = Page . GetByPlaceholder ( "Article Title" ) ;
8381 await Expect ( titleInput ) . ToBeVisibleAsync ( new ( ) { Timeout = 10000 } ) ;
84-
82+
8583 // Wait for the title input to have the original title (meaning article data loaded)
8684 await Expect ( titleInput ) . ToHaveValueAsync ( originalTitle , new ( ) { Timeout = 10000 } ) ;
8785
88- // Wait for the button to show "Update Article" (not "Publish Article")
86+ // Wait for the button to show "Update Article" (not "Publish Article")
8987 // This confirms the slug is loaded and we're in edit mode
9088 var updateButton = Page . GetByRole ( AriaRole . Button , new ( ) { Name = "Update Article" } ) ;
9189 await Expect ( updateButton ) . ToBeVisibleAsync ( new ( ) { Timeout = 10000 } ) ;
You can’t perform that action at this time.
0 commit comments