blob: 34d69d2b0ec1fc6f87136ceebb9f1d0ea81113bd [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {click, goToResource, waitFor} from '../../shared/helper.js';
import {openPanelViaMoreTools} from './settings-helpers.js';
export async function waitForAnimationsPanelToLoad() {
// Open panel and wait for content
await openPanelViaMoreTools('Animations');
await waitFor('div[aria-label="Animations panel"]');
await waitFor('div.animations-timeline');
}
export async function navigateToSiteWithAnimation() {
// Navigate to a website with an animation
await goToResource('animations/default.html');
}
export async function waitForAnimationContent() {
const firstAnimationPreviewSelector = '.animation-buffer-preview[aria-label="Animation Preview 1"]';
await waitFor(firstAnimationPreviewSelector);
await click(firstAnimationPreviewSelector);
await waitFor('.animation-node-row');
await waitFor('svg.animation-ui');
}