diff --git a/tests/Plugins/MediaEmbed/ParserTest.php b/tests/Plugins/MediaEmbed/ParserTest.php
index 78a9777ec..f4d6b95c1 100644
--- a/tests/Plugins/MediaEmbed/ParserTest.php
+++ b/tests/Plugins/MediaEmbed/ParserTest.php
@@ -20,6 +20,19 @@ class ParserTest extends Test
use ParsingTestsJavaScriptRunner;
use RenderingTestsRunner;
+ protected static function filterTests(array $tests): array
+ {
+ if (isset($_SERVER['GITHUB_RUN_ID']))
+ {
+ $tests = array_filter(
+ $tests,
+ fn($test) => str_starts_with($test[0], 'https://www.youtube.com/clip/')
+ );
+ }
+
+ return $tests;
+ }
+
protected static function populateCache($entries)
{
$cacheDir = __DIR__ . '/../../.cache';
@@ -493,7 +506,7 @@ public function testScraping()
public static function getScrapingTests()
{
- return [
+ return self::filterTests([
[
'https://shows.acast.com/chaotic-normal/episodes/the-rising-tide',
'https://shows.acast.com/chaotic-normal/episodes/the-rising-tide',
@@ -1137,7 +1150,7 @@ function ($configurator)
$configurator->MediaEmbed->add('youtube');
}
],
- ];
+ ]);
}
/**
@@ -1152,7 +1165,7 @@ public function testScrapingRendering()
public static function getScrapingRenderingTests()
{
- return [
+ return self::filterTests([
[
'https://www.gettyimages.com/detail/3232182',
'()',
@@ -1252,7 +1265,7 @@ function ($configurator)
$configurator->MediaEmbed->add('youtube');
}
],
- ];
+ ]);
}
public static function getParsingTests()