Closed (fixed)
Project:
Search API Autocomplete
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jun 2017 at 10:05 UTC
Updated:
9 Aug 2017 at 09:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyComment #3
drunken monkeyActually found a Core bug (I think) while working on this: #2895591: JSWebAssert::assertNotVisibleInViewport() does not actually check element visibility.
Comment #4
drunken monkeyThis should be plenty, for now. Can always add more later (esp. for new features or fixed bugs).
The patch depends on #2895142: Make our test classes more useful for other modules in the Search API module. I just made a new release for it – let's hope this is enough to be picked up by the test bot.
Comment #5
borisson_Can we say anonymous here? So:
An anonymous user used for the tests.We should only really use javascript tests when we need the javascript, and I don't think that's needed for this test-method, let's move that to a normal btb-test?
I think it'd make more sense to move this blank line down 1 line,
Doesn't need js either, I think.
Only nitpicks, nothing major. Don't mind being ignored on any of 'm so setting to rtbc.
Comment #6
borisson_Actually, I think moving admin-tests to BrowserTestBase is a good thing to do. So I think we should do that and remove that from the javascript test. We should use the api to create an index/autocomplete in the js-tests so that they don't need to use the ui for all that creation.
Comment #7
drunken monkeyThanks a lot for reviewing!
You mean "authenticated"? It's not an anonymous user.
Why? If we can have a single integration test for the whole UI, why split it just because not all functionality is needed for all parts? Is there really a benefit in having a BTB test instead?
Also, part of the current test also tests JS functionality in the admin UI (showing/hiding suggester settings when they are enabled/disabled). Not critical, I guess, but we'd still actually lose some coverage when moving this to BTB.
Comment #8
borisson_#7, If we lose coverage, we might as well keep this as js-tests.
Comment #10
drunken monkeyOK, great. Thanks again for your review and feedback!
Committed.