fmt

Gerasimos (Makis) Maropoulos 2019-07-21 00:28:24 +03:00
parent c4bb771f6b
commit 174302e459
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -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)