mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: prevents flakey due to usernames with quotes (#26907)
Faker could generate usernames like `D'angelo` and that doesn’t work out nicely for our tests. Using domain names seems safer.
This commit is contained in:
@@ -58,7 +58,7 @@ export default class CoreFabricators {
|
||||
user(args = {}) {
|
||||
return this.store.createRecord("user", {
|
||||
id: args.id || incrementSequence(),
|
||||
username: args.username || getLoadedFaker().faker.person.firstName(),
|
||||
username: args.username || getLoadedFaker().faker.internet.domainWord(),
|
||||
name: args.name,
|
||||
avatar_template: "/letter_avatar_proxy/v3/letter/t/41988e/{size}.png",
|
||||
suspended_till: args.suspended_till,
|
||||
|
||||
Reference in New Issue
Block a user