[wp-trac] [WordPress Trac] #52086: user-profile.min.js issue on Firefox
WordPress Trac
noreply at wordpress.org
Mon May 10 17:02:10 UTC 2021
#52086: user-profile.min.js issue on Firefox
--------------------------+-----------------------------------------
Reporter: adi64bit | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Users | Version: 5.6
Severity: critical | Resolution:
Keywords: needs-patch | Focuses: javascript, administration
--------------------------+-----------------------------------------
Comment (by thomasplevy):
I'm seeing this (or maybe it's a different (related?) issue) on Chromium
linux-737027 when running E2E tests on 5.7.1.
I have a test that visits `users-new.php` and creates a new user. The
tests are failing with:
{{{
TypeError: Cannot read property 'data' of undefined
at f (http:/localhost:8080/wp-admin/js/user-
profile.min.js?ver=5.7.1:2:195)
at v (http:/localhost:8080/wp-admin/js/user-
profile.min.js?ver=5.7.1:2:1185)
at HTMLDocument.<anonymous> (http:/localhost:8080/wp-admin/js/user-
profile.min.js?ver=5.7.1:2:5086)
at e (http:/localhost:8080/wp-admin/load-
scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,zxcvbn-
async&ver=5.7.1:2:30005)
at t (http:/localhost:8080/wp-admin/load-
scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,zxcvbn-
async&ver=5.7.1:2:30307)
}}}
This crops up shortly after loading the page but only when running the
tests headless. If I "watch" the tests the issue doesn't happen.
I have a screenshot error reporter setup on headless mode and the error
seems to occur shortly after the page finishes loading as the screenshots
usually show 3-5 characters entered into the user login field (which is
the first step of the test)
When enabling `SCRIPT_DEBUG` I no longer have an issue.
I haven't been able to reproduce this in isolation without my plugin being
enabled (LifterLMS). I have tried to reproduce it by performing these
actions manually in a variety of browsers with no plugins installed but in
all of my attempts I come out without issue. But I'm fairly confident this
isn't a plugin.
In the meantime I've switched my tests to run with SCRIPT_DEBUG enabled.
Thanks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52086#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list