Skip to content

Commit

Permalink
Update browser-ui-test to 0.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and syphar committed Feb 5, 2025
1 parent 5756a7c commit 51572d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile-gui-tests
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ RUN mkdir out
# https://github.com/puppeteer/puppeteer/issues/375
#
# We also specify the version in case we need to update it to go around cache limitations.
RUN npm install -g browser-ui-test@0.16.10 --unsafe-perm=true
RUN npm install -g browser-ui-test@0.20.1 --unsafe-perm=true

EXPOSE 3000

Expand Down
4 changes: 1 addition & 3 deletions gui-tests/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ async function main(argv) {
const options = new Options();
try {
// This is more convenient that setting fields one by one.
const args = [
"--no-sandbox",
];
const args = [];
if (typeof process.env.SERVER_URL !== "undefined") {
args.push("--variable", "DOC_PATH", process.env.SERVER_URL);
} else {
Expand Down
8 changes: 4 additions & 4 deletions gui-tests/topbar-resize.goml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ store-value: (window_height, 1000)

define-function: (
"check-topbar",
(width, text_display, search_display, search_max_width),
[width, text_display, search_display, search_max_width],
block {
set-window-size: (|width|, |window_height|)
wait-for-css: (".nav-container > .container a > .title", {"display": |text_display|})
Expand All @@ -24,7 +24,7 @@ define-function: (

define-function: (
"check-topbar-sizes",
(),
[],
block {
set-window-size: (1100, |window_height|)
store-size: ("body > .nav-container", {"height": top_navbar_height})
Expand Down Expand Up @@ -92,7 +92,7 @@ define-function: (
)

go-to: |DOC_PATH| + "/sysinfo"
call-function: ("check-topbar-sizes", ())
call-function: ("check-topbar-sizes", {})

go-to: |DOC_PATH| + "/releases/search?query=sysinfo"
call-function: ("check-topbar-sizes", ())
call-function: ("check-topbar-sizes", {})

0 comments on commit 51572d5

Please sign in to comment.