Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions

Jump to navigation Jump to search
m
Line 1,189: Line 1,189:
   })</nowiki>
   })</nowiki>


=== Perform API Request ===
=== Performing API Requests ===
To test the delete article function we need to first use the API to
* Login to obtain access token
* create an article
And then we can use web ui to
* Login
* go to Global Feed tab
* find & click the article we created
* delete the article
* refresh the Global Feed tab
* Confirm the article is no longer listed
 
=== Intercept Browser API Response ===
=== Intercept Browser API Response ===
=== Sharing Authentication State ===
=== Sharing Authentication State ===
=== API Authentication ===
=== API Authentication ===

Navigation menu