Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test errors for MW 1.42/43 #897

Open
paladox opened this issue Dec 30, 2024 · 0 comments
Open

Fix test errors for MW 1.42/43 #897

paladox opened this issue Dec 30, 2024 · 0 comments

Comments

@paladox
Copy link
Contributor

paladox commented Dec 30, 2024

Some of them have been skipped for 1.42/43 and need fixing.

1) SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::testCaseFile with data set "listwidget-01.json" ('/var/www/html/extensions/Sema...1.json')
Failed assertion for test case `#0 Listwidget - alphabet - unordered` on: 
=====
<div class="mw-content-ltr mw-parser-output" lang="fr" dir="ltr"></div>
=====
Expected pattern: `.srf-listwidget[data-listtype="ul"][data-widget="alphabet"][data-pageitems="6"] .listwidget-container[id]`
Expected occurrences: at least 1
Found occurrences: 0

Failed asserting that false is true.

/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/HtmlValidator.php:123
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/JSONScript/ParserHtmlTestCaseProcessor.php:84
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/JSONScript/ParserHtmlTestCaseProcessor.php:60
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptServicesTestCaseRunner.php:365
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptServicesTestCaseRunner.php:131
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptTestCaseRunner.php:231
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/SMWIntegrationTestCase.php:205
1) SRF\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest::testCaseFile with data set "carousel-01.json" ('/var/www/html/extensions/Sema...1.json')
Failed "#0"

==== (actual) ====
<div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="slick-slider my-class" style="width: 100%; height: 400px" data-slick="{&quot;accessibility&quot;:true,&quot;adaptiveHeight&quot;:false,&quot;arrows&quot;:true,&quot;autoplay&quot;:false,&quot;autoplaySpeed&quot;:3000,&quot;centerMode&quot;:false,&quot;centerPadding&quot;:&quot;50px&quot;,&quot;cssEase&quot;:&quot;ease&quot;,&quot;dots&quot;:true,&quot;dotsClass&quot;:&quot;slick-dots&quot;,&quot;draggable&quot;:true,&quot;easing&quot;:&quot;linear&quot;,&quot;edgeFriction&quot;:0.15,&quot;fade&quot;:false,&quot;focusOnSelect&quot;:false,&quot;focusOnChange&quot;:false,&quot;infinite&quot;:true,&quot;initialSlide&quot;:0,&quot;lazyLoad&quot;:&quot;ondemand&quot;,&quot;mobileFirst&quot;:false,&quot;nextArrow&quot;:&quot;&lt;button type=\&quot;button\&quot; class=\&quot;slick-next\&quot;&gt;Next&lt;\/button&gt;&quot;,&quot;pauseOnDotsHover&quot;:false,&quot;pauseOnFocus&quot;:true,&quot;pauseOnHover&quot;:true,&quot;prevArrow&quot;:&quot;&lt;button type=\&quot;button\&quot; class=\&quot;slick-prev\&quot;&gt;Previous&lt;\/button&gt;&quot;,&quot;respondTo&quot;:&quot;window&quot;,&quot;rows&quot;:1,&quot;rtl&quot;:false,&quot;slide&quot;:&quot;&quot;,&quot;slidesPerRow&quot;:1,&quot;slidesToScroll&quot;:1,&quot;slidesToShow&quot;:1,&quot;speed&quot;:300,&quot;swipe&quot;:true,&quot;swipeToSlide&quot;:false,&quot;touchMove&quot;:true,&quot;touchThreshold&quot;:5,&quot;useCSS&quot;:true,&quot;useTransform&quot;:true,&quot;variableWidth&quot;:false,&quot;vertical&quot;:false,&quot;verticalSwiping&quot;:false,&quot;waitForAnimate&quot;:true,&quot;zIndex&quot;:1000}"><div class="slick-slide" data-url="http://localhost:8080/wiki/File:Gallery01.png"><img src="/images/7/7f/Gallery01.png" alt="caption a" class="slick-slide-content img" style="object-fit: cover; max-width:100%" /><div class="slick-slide-content caption"><div class="slick-slide-content caption-title">title a</div><div class="slick-slide-content caption-text">caption a</div></div></div></div></div>
==== (StringContains expected) ====
[ <div class="slick-slide" data-url=".*/index.php/File:Gallery01.png"><img src=".*/images/7/7f/Gallery01.png" alt="caption a".* class="slick-slide-content img".*/><div class="slick-slide-content caption"><div class="slick-slide-content caption-title">title a</div><div class="slick-slide-content caption-text">caption a</div></div></div></div> ]

Failed asserting that 0 matches expected 1.

/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/StringValidator.php:82
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/StringValidator.php:33
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/JSONScript/ParserTestCaseProcessor.php:215
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/Utils/JSONScript/ParserTestCaseProcessor.php:110
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptServicesTestCaseRunner.php:338
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptServicesTestCaseRunner.php:127
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptTestCaseRunner.php:231
/var/www/html/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/tests/phpunit/SMWIntegrationTestCase.php:205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant