Skip to content

Commit 1714295

Browse files
committed
remove unused code
1 parent 2cce474 commit 1714295

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

code/go/site/smoketests/helpers.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@ import (
88
"github.com/stretchr/testify/assert"
99
)
1010

11-
func waitForElementWithIDToHaveInnerText(t assert.TestingT, page *rod.Page, el *rod.Element) {
12-
id, err := el.Attribute("id")
13-
assert.NoError(t, err)
14-
assert.NotNil(t, id)
15-
16-
js := fmt.Sprintf(`() => {
17-
const q = document.querySelector('#%s')
18-
return q.innerText != ''
19-
}`, *id)
20-
page.MustWait(js)
21-
}
22-
2311
func waitForElementWithIDToStartWith(t assert.TestingT, page *rod.Page, el *rod.Element, text string) {
2412
id, err := el.Attribute("id")
2513
assert.NoError(t, err)

code/go/site/smoketests/redirects_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ import (
66
"github.com/stretchr/testify/assert"
77
)
88

9-
type redirect struct {
10-
RedirectTo string `json:"redirectTo"`
11-
}
12-
139
func TestExampleRedirects(t *testing.T) {
1410
g := setup(t)
1511

0 commit comments

Comments
 (0)