import { BaseComponent } from '@/shared/base/BaseComponent';

export class NumberField extends BaseComponent {
  private readonly input = this.host.locator('input[type=number]');

  fill(value: number): Promise<void> {
    return this.input.fill(value.toString());
  }

  clear(): Promise<void> {
    return this.input.clear();
  }
}
