In https://www.drupal.org/pift-ci-job/450209, I'm seeing lots of fails like this:

Purge_ui.Drupal\purge_ui\Tests\DashboardPurgersTest
✓		- setUp
✗	
testPurgersSection
fail: [Other] Line 49 of modules/purge/modules/purge_ui/src/Tests/DashboardPurgersTest.php:
Raw "href="/admin/config/development/performance/purge/purger/id0"" found

fail: [Other] Line 51 of modules/purge/modules/purge_ui/src/Tests/DashboardPurgersTest.php:
Raw "href="/admin/config/development/performance/purge/purger/id0/delete"" found

fail: [Other] Line 52 of modules/purge/modules/purge_ui/src/Tests/DashboardPurgersTest.php:
Raw "href="/admin/config/development/performance/purge/purger/id1"" found

fail: [Other] Line 53 of modules/purge/modules/purge_ui/src/Tests/DashboardPurgersTest.php:
Raw "href="/admin/config/development/performance/purge/purger/id1/config/dialog"" found

fail: [Other] Line 54 of modules/purge/modules/purge_ui/src/Tests/DashboardPurgersTest.php:
Raw "href="/admin/config/development/performance/purge/purger/id1/delete"" found
✓		- testFormAccess
2	1	Purge_ui.Drupal\purge_ui\Tests\DashboardLoggingTest
✓		- setUp
✗	
testLoggingSection
fail: [Other] Line 25 of modules/purge/modules/purge_ui/src/Tests/DashboardLoggingTest.php:
Raw "href="/admin/config/development/performance/purge/logging"" found

All of these are because the tests hardcode the assumption that Drupal is installed in the root of a domain, rather than in a subdirectory.

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

wim leers’s picture

Current situation at https://www.drupal.org/pift-ci-job/450209:

423 pass, 12 fail
wim leers’s picture

Status: Active » Needs review
StatusFileSize
new11.23 KB
wim leers’s picture

Title: Make UI tests pass on d.o's testbot » Make UI tests pass on d.o's testbot: don't assume Drupal is installed in the root of a domain

Status: Needs review » Needs work

The last submitted patch, 4: 2805123-4.patch, failed testing.

The last submitted patch, 4: 2805123-4.patch, failed testing.

The last submitted patch, 4: 2805123-4.patch, failed testing.

The last submitted patch, 4: 2805123-4.patch, failed testing.

wim leers’s picture

Status: Needs work » Needs review
Before
423 pass, 12 fail
After
428 pass, 8 fail

Progress!

wim leers’s picture

This issue is ready, btw. I plan no more work. AFAICT these are all the URL-related test failures.

slasher13’s picture

StatusFileSize
new14.61 KB
new3.63 KB

Status: Needs review » Needs work

The last submitted patch, 12: make_ui_test_pass-2805123-12.patch, failed testing.

slasher13’s picture

Status: Needs work » Needs review
StatusFileSize
new20.19 KB
new5.82 KB

Status: Needs review » Needs work

The last submitted patch, 14: make_ui_test_pass-2805123-14.patch, failed testing.

slasher13’s picture

Status: Needs work » Needs review
StatusFileSize
new20.86 KB
new1.16 KB

Status: Needs review » Needs work

The last submitted patch, 16: make_ui_test_pass-2805123-16.patch, failed testing.

slasher13’s picture

Status: Needs work » Needs review
StatusFileSize
new20.97 KB
new829 bytes

Status: Needs review » Needs work

The last submitted patch, 18: make_ui_test_pass-2805123-18.patch, failed testing.

slasher13’s picture

Status: Needs work » Needs review
StatusFileSize
new21.28 KB
new1.29 KB
slasher13’s picture

StatusFileSize
new24.82 KB
new3.73 KB

The last submitted patch, 20: make_ui_test_pass-2805123-20.patch, failed testing.

The last submitted patch, 20: make_ui_test_pass-2805123-20.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 21: make_ui_test_pass-2805123-22.patch, failed testing.

  • nielsvm committed 86bb574 on 8.x-3.x authored by Wim Leers
    Issue #2805123 by slasher13, Wim Leers, nielsvm: Make UI tests pass on d...
nielsvm’s picture

Status: Needs work » Fixed

All of these are because the tests hardcode the assumption that Drupal is installed in the root of a domain, rather than in a subdirectory.

Who would have thought that it wouldn't be :-)

Anyway, I just committed the HARDCODE --> Url::fromRoute() changes in the otherwise failing patch and didn't manage to grep-catch any other path hardcodes, so hopefully this brings test-passing closer. I'll mark the ticket as fixed as the actual URL issues are fixed, but I will look at the drupal.org test-passing more often and before tagging the next release.

Thanks everybody, much appreciated!

Niels

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.