// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

describe('Checkbox', () => {
  it('unchecked', async () => {
    await page.goto(
      'http://host.docker.internal:9009/iframe.html?id=ui-components-form-checkbox--checkbox'
    );
    const image = await page.screenshot();
    expect(image).toMatchImageSnapshot();
  });

  it('checked', async () => {
    await page.goto(
      'http://host.docker.internal:9009/iframe.html?id=ui-components-form-checkbox--checkbox&knob-checked=true'
    );
    const image = await page.screenshot();
    expect(image).toMatchImageSnapshot();
  });
});
