Commit b88a8b1
committed
test(e2e): use impit in the robots file test
The store 429s plain HTTP clients, so `cheerio-robots-file` never got a
single request through and failed on its `requestsFinished >= 1`
precondition rather than on the robots.txt behaviour it asserts.
The block keys off the client, not the IP: the browser-based tests reach
the same store from the same address, and routing the crawl through a
proxy changed nothing. Impersonating Firefox gets us through, the same way
`cheerio-impit-ts` already does.1 parent 3e3dc63 commit b88a8b1
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments