chromium/chrome/test/base/ash/interactive/interactive_ash_test_uitest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/test/base/ash/interactive/interactive_ash_test.h"

#include "content/public/test/browser_test.h"
#include "url/gurl.h"

namespace ash {
namespace {

using InteractiveAshTestUITest = InteractiveAshTest;

IN_PROC_BROWSER_TEST_F(InteractiveAshTestUITest, Basics) {
  SetupContextWidget();

  // Verify that installing system apps doesn't crash or flake.
  InstallSystemApps();

  // Verify an active user exists.
  ASSERT_TRUE(GetActiveUserProfile());

  // Open a browser window.
  GURL version_url("chrome://version");
  ASSERT_TRUE(CreateBrowserWindow(version_url));

  // Open a second browser window.
  GURL blank_url("about:blank");
  ASSERT_TRUE(CreateBrowserWindow(blank_url));
}

}  // namespace
}  // namespace ash