Closed (fixed)
Project:
Entity Browser
Version:
8.x-2.x-dev
Component:
Tests
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Dec 2018 at 15:24 UTC
Updated:
10 May 2019 at 21:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
oknateInitial patch, didn't test locally, just changed classes and changed many deprecated functions.
Comment #3
oknateComment #4
oknateComment #5
oknateComment #6
oknateComment #7
oknateI'm having trouble with converting some of the calls to $this->drupalPostAjaxForm(). Anyone else want to update my patch?
Comment #8
oknateI started working on this again. I have drupalci_testbot set up locally. This patch is a work in progress. Since I'll probably have to take a break from this, I wanted to post my work in progress.
Comment #9
oknateWorking on MultistepDisplayTest
Comment #10
oknateworking on file uploads, adding TestFileCreationTrait where drupalGetTestFiles used.
Comment #11
oknateComment #12
oknateComment #13
oknateRemoving coding standard changes I accidentally included from another issue.
Comment #14
oknateSame as 13, trying to just remove coding standard changes from other issue.
Comment #15
berdirPretty sure this needs a pretty big reroll now :)
BTW, I would recommend to split such a task up, first just move all tests to phpunit, with minimally required changes and keeping all the old deprecated asserts and so on. They will most likely not be removed in D9 and we are about to remove the explicit deprecation marker on them for now: #3031580: Undeprecate \Drupal\FunctionalTests\AssertLegacyTrait and \Drupal\KernelTests\AssertLegacyTrait in Drupal 8.
That keeps these conversions reviewable. Not quite sure what makes more sense now, as I expect some massive conflicts on the admin UI tests.. maybe keep what still applies but don't spend too much on the admin UI tests and just re-move them from the old place with minimal changes.
The fake drupalPostAjaxForm() is gone, everything that uses that either needs to be converted to javascript tests or rewritten in a way to avoid that. Sometimes it doesn't actually need JS, I used it quite often to submit form elements that weren't a button or had no unique label, that's actually often possible now through the mink API.
Comment #16
oknateReroll. There were massive conflicts on two of the tests. For those ones, I just kept what's in head, and will have to redo some work.
Thanks for the info about possibly undeprecating AssertLegacyTrait, if that is merged in, it will make this issue less urgent. I'll keep plugging away at it, and I'll see what I can do to break it up. I think a few of the smaller ones are done.
Comment #17
oknateComment #18
oknateComment #19
oknateComment #20
oknateComment #21
oknateComment #22
oknateI moved some of the tests to separate issues. The ones that remain all extend a class I'm renaming. I may break those up too by adding another base ticket and then create subtickets for each one. Or else I might just leave the remaining ones here. We'll see how badly it fails on the testbot.
Comment #23
oknateComment #25
primsi commentedComment #26
oknateComment #27
oknateComment #28
oknateAdding #3040286: PluginsTest failing on 8.6.11, The need to update PluginsTest is more critical now.
Comment #29
oknateThis patch updates the classes extending EntityBrowserJavascriptTestBase to a new class EntityBrowserWebDriverTestBase.
Comment #30
oknateComment #31
oknateComment #32
oknateUpdated #3040745: Convert MultistepDisplayTest from WebTestBase to BrowserTestBase, that one's ready for review now.
Comment #33
oknateMoving patch 29 to #3040770: Update test classes extending EntityBrowserJavascriptTestBase.
That way, this ticket is only a META ticket. I think it will keep it clearer what needs review.
Comment #34
oknateComment #35
oknateComment #36
oknateComment #37
oknateComment #38
oknateComment #39
oknateComment #40
oknateComment #41
oknateComment #42
oknateRerolled #3040770: Update test classes extending EntityBrowserJavascriptTestBase
Comment #43
oknateComment #44
oknateComment #45
oknateComment #46
oknateComment #47
oknateComment #48
oknateComment #49
oknateComment #50
oknate#3038131: Convert InlineEntityIntegrationTest from WebTestBase to WebDriverTestBase is fixed! That was the last one (within entity_browser module) that used the old base class.
Comment #51
oknateI'm going to go ahead and mark this as fixed. There are two issues left, but they are in other contrib modules.
Comment #52
oknate