Commit 929e841f authored by Justin Kromlinger's avatar Justin Kromlinger

Revert "Drop getting the status svg url by XPath since we can't access the new pseudo DOM"

This reverts commit 037c232c.
parent 46ad1559
......@@ -203,12 +203,22 @@ func TestAcception(t *testing.T) {
}
assert.Equal(t, articleHeader, "Heart-rate")
statusBackgroundImage, err := article.FindByXPath("//div[@class='status-svg']/div").CSS("background-image")
if !assert.NoError(t, err) {
t.FailNow()
}
if !assert.True(t, strings.HasPrefix(statusBackgroundImage, `url("`)) {
t.FailNow()
}
statusBackgroundImage = strings.Split(statusBackgroundImage, `"`)[1]
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// STATUS IMAGE CHECK
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Check status svg
resp, err = http.Get(url + "status-1700x650.svg")
resp, err = http.Get(statusBackgroundImage)
if assert.NoError(t, err) {
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment