mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
chore: log formatting for single state (#27351)
Fixes formatting for "waiting for element to be and stable".
This commit is contained in:
parent
08e71fec5d
commit
0f14446518
@ -937,8 +937,8 @@ function compensateHalfIntegerRoundingError(point: types.Point) {
|
||||
export type SchedulableTask<T> = (injectedScript: js.JSHandle<InjectedScript>) => Promise<js.JSHandle<InjectedScriptPoll<T>>>;
|
||||
|
||||
function joinWithAnd(strings: string[]): string {
|
||||
if (strings.length < 1)
|
||||
return strings.join(', ');
|
||||
if (strings.length <= 1)
|
||||
return strings.join('');
|
||||
return strings.slice(0, strings.length - 1).join(', ') + ' and ' + strings[strings.length - 1];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user