File tree Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ RUN apt-get install -y \
64
64
wget
65
65
66
66
# Install rust
67
- RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain nightly --no-modify-path --profile minimal
67
+ RUN curl --proto '= https' --tlsv1.2 -sSf https ://sh.rustup.rs | bash -s -- -y --default-toolchain nightly --no-modify-path --profile minimal
68
68
ENV PATH="/root/.cargo/bin:${PATH}"
69
69
70
70
RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
@@ -80,7 +80,7 @@ RUN mkdir out
80
80
# https://github.com/puppeteer/puppeteer/issues/375
81
81
#
82
82
# We also specify the version in case we need to update it to go around cache limitations.
83
- RUN npm install -g browser-ui-test@0.8.5 --unsafe-perm=true
83
+ RUN npm install -g browser-ui-test@0.16.10 --unsafe-perm=true
84
84
85
85
EXPOSE 3000
86
86
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ docker-compose build web
16
16
if [ ! -f .env ]
17
17
then
18
18
cp .env.sample .env
19
- source .env
19
+ . .env
20
20
fi
21
21
22
22
docker-compose up -d web
@@ -32,5 +32,4 @@ sleep 5
32
32
# status="docker run . -v `pwd`:/build/out:ro gui_tests"
33
33
docker-compose run gui_tests
34
34
status=$?
35
- kill -9 $SERVER_PID
36
35
exit $status
Original file line number Diff line number Diff line change 1
1
// Checks the content of the 404 page.
2
- goto : |DOC_PATH|/non-existing-crate
2
+ go-to : |DOC_PATH| + " /non-existing-crate"
3
3
assert-text: ("#crate-title", "The requested crate does not exist")
Original file line number Diff line number Diff line change 1
1
// Checks that the "latest" URL leads us to the last version of the `sysinfo` crate.
2
- goto : |DOC_PATH|/sysinfo
2
+ go-to : |DOC_PATH| + " /sysinfo"
3
3
// We first check if the redirection worked as expected:
4
4
assert-document-property: ({"URL": "/sysinfo/latest/sysinfo/"}, ENDS_WITH)
5
+ // Now we go to the actual version we're interested into.
6
+ go-to: |DOC_PATH| + "/sysinfo/0.23.5/sysinfo/index.html"
5
7
assert: "//*[@class='title' and text()='sysinfo-0.23.5']"
6
8
// And we also confirm we're on a rustdoc page.
7
9
assert: "#rustdoc_body_wrapper"
8
10
9
11
// Let's go to the docs.rs page of the crate.
10
- goto : |DOC_PATH|/crate/sysinfo/latest
12
+ go-to : |DOC_PATH| + " /crate/sysinfo/0.23.5"
11
13
assert-false: "#rustdoc_body_wrapper"
12
14
assert-text: ("#crate-title", "sysinfo 0.23.5", CONTAINS)
Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ async function main(argv) {
123
123
try {
124
124
// This is more convenient that setting fields one by one.
125
125
let args = [
126
- "--no-screenshot-comparison" ,
127
126
"--no-sandbox" ,
128
127
] ;
129
128
if ( typeof process . env . SERVER_URL !== 'undefined' ) {
@@ -166,14 +165,15 @@ async function main(argv) {
166
165
opts [ "jobs" ] = 1 ;
167
166
console . log ( "`--no-headless` option is active, disabling concurrency for running tests." ) ;
168
167
}
169
-
170
- console . log ( `Running ${ files . length } docs.rs GUI (${ opts [ "jobs" ] } concurrently) ...` ) ;
168
+ let jobs = opts [ "jobs" ] ;
171
169
172
170
if ( opts [ "jobs" ] < 1 ) {
171
+ jobs = files . length ;
173
172
process . setMaxListeners ( files . length + 1 ) ;
174
173
} else if ( headless ) {
175
174
process . setMaxListeners ( opts [ "jobs" ] + 1 ) ;
176
175
}
176
+ console . log ( `Running ${ files . length } docs.rs GUI (${ jobs } concurrently) ...` ) ;
177
177
178
178
const tests_queue = [ ] ;
179
179
let results = {
@@ -185,7 +185,7 @@ async function main(argv) {
185
185
for ( let i = 0 ; i < files . length ; ++ i ) {
186
186
const file_name = files [ i ] ;
187
187
const testPath = path . join ( __dirname , file_name ) ;
188
- const callback = runTest ( testPath , options )
188
+ const callback = runTest ( testPath , { " options" : options } )
189
189
. then ( out => {
190
190
const [ output , nb_failures ] = out ;
191
191
results [ nb_failures === 0 ? "successful" : "failed" ] . push ( {
You can’t perform that action at this time.
0 commit comments