...
 
Commits (4)
......@@ -80,7 +80,7 @@ selenium:
variables:
HUB_HOST: "selenium"
services:
- name: selenium/standalone-chrome:latest
- name: selenium/standalone-chrome:3.141.59-oxygen
alias: selenium
script:
- cd acception
......@@ -92,8 +92,8 @@ selenium:
- tags
artifacts:
paths:
- acceptionTest.html
- acceptionTest.png
- acception/acceptionTest.html
- acception/acceptionTest.png
when: on_failure
restore:
......
......@@ -115,8 +115,8 @@ func TestAcception(t *testing.T) {
// Header should contain some links
header := page.FindByXPath("//header")
for _, link := range []string{"/", "/status", "https://github.com/hashworks", "https://steamcommunity.com/id/hashworks", "https://www.reddit.com/user/hashworks/posts/"} {
linkElement := header.FindByXPath(fmt.Sprintf("//a[@href='%s']", link))
for _, link := range []string{"/", "/status", "https://git.hashworks.net", "https://github.com/hashworks", "https://steamcommunity.com/id/hashworks", "https://www.reddit.com/user/hashworks/posts/"} {
linkElement := header.FindByXPath(fmt.Sprintf("//nav//a[@href='%s']", link))
if count, err := linkElement.Count(); assert.NoError(t, err) {
assert.Equal(t, count, 1)
}
......
......@@ -6,3 +6,5 @@ require (
github.com/sclevine/agouti v3.0.0+incompatible
github.com/stretchr/testify v1.2.2
)
go 1.13
......@@ -13,25 +13,22 @@ require (
github.com/gin-gonic/gin v1.3.0
github.com/go-errors/errors v1.0.1
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
github.com/golang/protobuf v1.2.0 // indirect
github.com/gomodule/redigo v2.0.0+incompatible // indirect
github.com/hashworks/go-chart v2.0.2-0.20181012215714-9fd7836f84d7+incompatible
github.com/influxdata/influxdb v1.6.3
github.com/json-iterator/go v1.1.5 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/memcachier/mc v2.0.1+incompatible // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/robfig/go-cache v0.0.0-20130306151617-9fc39e0dbf62 // indirect
github.com/stretchr/testify v1.2.2
github.com/securego/gosec v0.0.0-20190912120752-140048b2a218 // indirect
github.com/stretchr/testify v1.4.0
github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 // indirect
github.com/unrolled/secure v0.0.0-20180914162101-439d7b25425f
github.com/urfave/cli v1.20.0
github.com/wcharczuk/go-chart v2.0.1+incompatible
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81 // indirect
golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
golang.org/x/net v0.0.0-20190909003024-a7b16738d86b
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
)
......
This diff is collapsed.