test(macAutocomplete): Fix tests not working on Firefox