Skip to content

Commit 9a5a4e3

Browse files
authored
Update integration test for new dartdoc URL. (#8351)
1 parent a26a38e commit 9a5a4e3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkg/pub_integration/lib/script/publishing.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,16 @@ class PublishingScript {
210210
if (!pageHtml.contains('made with love by dartdoc')) {
211211
throw Exception('Documentation page is not the output of dartdoc.');
212212
}
213-
if (!pageHtml.contains('<a href="retry/retry-library.html">')) {
213+
final retryLinks = [
214+
// generated by dartdoc 8.3
215+
'<a href="retry">retry</a>',
216+
// maybe a future dartdoc will generate this
217+
// see https://github.com/dart-lang/dartdoc/issues/3936
218+
'<a href="retry/">retry</a>',
219+
// generated by dartdoc 8.1
220+
'<a href="retry/retry-library.html">retry</a>',
221+
];
222+
if (!retryLinks.any(pageHtml.contains)) {
214223
throw Exception('Documentation page does not contain main library.');
215224
}
216225
}

0 commit comments

Comments
 (0)