Skip to content

Commit

Permalink
Add TestSetDownloadsPath.non_empty_path
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Oct 21, 2024
1 parent 4833a75 commit 44bb475
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/browser_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ func TestSetDownloadsPath(t *testing.T) {
assert.Contains(t, bc.DownloadsPath, artifactsDirectory)
assert.DirExists(t, bc.DownloadsPath)
})
t.Run("non_empty_path", func(t *testing.T) {
t.Parallel()

var bc BrowserContext
path := "/my/directory"
require.NoError(t, bc.setDownloadsPath(path))
assert.Equal(t, path, bc.DownloadsPath)
})
}

func TestFilterCookies(t *testing.T) {
Expand Down

0 comments on commit 44bb475

Please sign in to comment.