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

describe('EditableChatBubble', () => {
  it('visually looks correct', async () => {
    await page.goto(
      'http://host.docker.internal:9009/iframe.html?id=ui-components-chat-editablechatbubble--editable-chat-bubble&viewMode=story'
    );
    // needed to constraint focus on input and avoid inconsistent focus that causes snapshot failures.
    await page.focus('input');
    const image = await page.screenshot();
    expect(image).toMatchImageSnapshot();
  });
});
