diff --git a/Testing.md b/Testing.md index f3478b3..a7075e8 100644 --- a/Testing.md +++ b/Testing.md @@ -115,8 +115,10 @@ func TestCookiesBasic(t *testing.T) { cookieName, cookieValue := "my_cookie_name", "my_cookie_value" // Test Set A Cookie. - t1 := e.GET(fmt.Sprintf("/cookies/%s/%s", cookieName, cookieValue)).Expect().Status(httptest.StatusOK) - t1.Cookie(cookieName).Value().Equal(cookieValue) // validate cookie's existence, it should be there now. + t1 := e.GET(fmt.Sprintf("/cookies/%s/%s", cookieName, cookieValue)). + Expect().Status(httptest.StatusOK) + // Validate cookie's existence, it should be available now. + t1.Cookie(cookieName).Value().Equal(cookieValue) t1.Body().Contains(cookieValue) path := fmt.Sprintf("/cookies/%s", cookieName)