diff --git a/test/e2e/util.go b/test/e2e/util.go index b686f547..4e4cb99a 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -94,7 +94,7 @@ func (r RegexBuilder) Age() RegexBuilder { } func (r RegexBuilder) HumanizeTime() RegexBuilder { - return r.Raw(`[0-9]+ (?:seconds?|minutes?|hours?|days?|months?|years?) ago`) + return r.OneOf(`now`, `[0-9]+ (?:seconds?|minutes?|hours?|days?|months?|years?) ago`) } func (r RegexBuilder) Whitespace() RegexBuilder {