Skip to content

Commit a887677

Browse files
committed
fix: Resolve linting issues in e2e Playwright tests
1 parent 98cde25 commit a887677

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

e2e/playwright/accounts_test.go

Lines changed: 0 additions & 1 deletion
This file was deleted.

e2e/playwright/auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func TestAuth(t *testing.T) {
5454

5555
// Click login and wait for success
5656
require.NoError(t, buttonLocator.Click())
57-
require.NoError(t, expect.Expect(page.Locator("#bookmarks-grid")).ToBeVisible())
57+
require.NoError(t, page.Locator("#bookmarks-grid").WaitFor())
5858
})
5959

6060
t.Run("failed login with wrong username", func(t *testing.T) {

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ require (
2525
github.com/muesli/go-app-paths v0.2.2
2626
github.com/patrickmn/go-cache v2.1.0+incompatible
2727
github.com/pkg/errors v0.9.1
28+
github.com/playwright-community/playwright-go v0.4901.0
2829
github.com/sethvargo/go-envconfig v1.0.2
2930
github.com/shurcooL/vfsgen v0.0.0-20230704071429-0000e147ea92
3031
github.com/sirupsen/logrus v1.9.3
@@ -61,7 +62,7 @@ require (
6162
github.com/containerd/log v0.1.0 // indirect
6263
github.com/cpuguy83/dockercfg v0.3.1 // indirect
6364
github.com/davecgh/go-spew v1.1.1 // indirect
64-
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
65+
github.com/deckarep/golang-set/v2 v2.7.0 // indirect
6566
github.com/distribution/reference v0.5.0 // indirect
6667
github.com/docker/docker v25.0.6+incompatible // indirect
6768
github.com/docker/go-connections v0.5.0 // indirect
@@ -112,7 +113,6 @@ require (
112113
github.com/opencontainers/go-digest v1.0.0 // indirect
113114
github.com/opencontainers/image-spec v1.1.0 // indirect
114115
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
115-
github.com/playwright-community/playwright-go v0.4901.0 // indirect
116116
github.com/pmezard/go-difflib v1.0.0 // indirect
117117
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
118118
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr
4242
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4343
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
4444
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
45-
github.com/deckarep/golang-set/v2 v2.6.0 h1:XfcQbWM1LlMB8BsJ8N9vW5ehnnPVIw0je80NsVHagjM=
46-
github.com/deckarep/golang-set/v2 v2.6.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4=
45+
github.com/deckarep/golang-set/v2 v2.7.0 h1:gIloKvD7yH2oip4VLhsv3JyLLFnC0Y2mlusgcvJYW5k=
46+
github.com/deckarep/golang-set/v2 v2.7.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4=
4747
github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
4848
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
4949
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
@@ -178,6 +178,8 @@ github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o
178178
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
179179
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
180180
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
181+
github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc=
182+
github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg=
181183
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
182184
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
183185
github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5lXtc=

0 commit comments

Comments
 (0)