Skip to content

Commit

Permalink
test/screentest: remove unneeded seeds
Browse files Browse the repository at this point in the history
Remove modules that don't matter from the list of modules used
to seed the database in ci mode.

Also combine two identical tests.

Change-Id: I979ed07ce1f3bdf0fa164e46643cffefcdce45e3
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/626003
Reviewed-by: Robert Findley <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
kokoro-CI: kokoro <[email protected]>
  • Loading branch information
jba committed Nov 8, 2024
1 parent 6386050 commit 2aa6c44
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion internal/postgres/symbol.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,6 @@ func deleteOldSymbolSearchDocuments(ctx context.Context, db *database.DB,
if err != nil {
return err
}
log.Infof(ctx, "deleted %d rows from symbol_search_documents", n)
log.Debugf(ctx, "deleted %d rows from symbol_search_documents", n)
return nil
}
4 changes: 1 addition & 3 deletions tests/screentest/seed.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ golang.org/x/tools/[email protected]
github.com/jackc/[email protected]+incompatible
rsc.io/[email protected]
rsc.io/quote@all
rsc.io/quote/v2@all
rsc.io/quote/v3@all
rsc.io/quote/v4@all
rsc.io/quote/[email protected]
[email protected]
[email protected]
[email protected]
Expand Down
9 changes: 1 addition & 8 deletions tests/screentest/testcases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ block https://codecov.io/* https://travis-ci.com/*
{{$hideElements := "document.querySelector(\"[data-test-id='UnitHeader-importedby']\")?.remove();document.querySelector(\"[data-test-id='meta-link-depsdev']\")?.remove();"}}
{{$scrollTop := "window.scrollTo({top:0});"}}

test short readme has no toggle
test short readme has no toggle and higher major version
pathname /rsc.io/quote
wait {{$ready}}
eval {{$hideElements}}
Expand Down Expand Up @@ -108,13 +108,6 @@ eval {{$hideElements}}
capture viewport
capture viewport 540x1080

test package with higher major version
pathname /rsc.io/quote
wait {{$ready}}
eval {{$hideElements}}
capture viewport
capture viewport 540x1080

test package with multi-GOOS
pathname /github.com/creack/[email protected]
wait {{$ready}}
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 2aa6c44

Please sign in to comment.