1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-12-23 15:01:49 +02:00
Commit Graph

3 Commits

Author SHA1 Message Date
michael-kerscher
3b6306885d tests: refactor slide style guide tests and add playground size checks (#2745)
The previous slide-size.test.ts was refactored and a slide class was
implemented for convenience.
The test now checks the playground size (if available on that slide) by
checking if scrollbars are visible.
To make this test more efficient, the mocha before() hook is used to
load the slide once and check with all relevant tests before loading the
next slide.
2025-05-16 10:59:47 +02:00
Martin Geisler
0134568034 Bump dprint plugins to their latest versions (#2402) 2025-02-28 14:27:17 +00:00
michael-kerscher
4ec257942e Tests for playground are using a mock response (#2611)
The official playground quite often provides a timeout error as in
https://github.com/google/comprehensive-rust/issues/2549

This is mocking/overriding the response from the playground for success
and failure messages to avoid the server provided timeouts. As far as I
see most responses from the playground are delivered below 10 seconds
(but varies a lot...)

There still might be timeouts and I know of the following knobs that can
be tuned
- wdio waits for 10 seconds until it aborts the current attemp (e.g. to
wait for the text to be as expected)

347de61d13/tests/wdio.conf.ts (L98)
- another timeout is the 15 second timeout for fetching the result from
the playground - this is not overriden by the mock (currently, pending
https://github.com/webdriverio/webdriverio/issues/14090 which would
allow for an immediate mock response without waiting for the remote
endpoint)

347de61d13/theme/book.js (L31)
2025-02-06 12:33:33 +01:00