iharsh02 commented on code in PR #60076: URL: https://github.com/apache/airflow/pull/60076#discussion_r2677176718
########## airflow-core/src/airflow/ui/tests/e2e/specs/browse.spec.ts: ########## @@ -0,0 +1,108 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { expect, test } from "@playwright/test"; +import { AUTH_FILE } from "playwright.config"; + +import { BrowsePage } from "../pages/BrowsePage"; + +const hitlDagId = "example_hitl_operator"; + +test.describe("Verify Required Action page", () => { + test.describe.configure({ mode: "serial" }); + + test.beforeAll(async ({ browser }) => { + test.setTimeout(120_000); + + const context = await browser.newContext({ storageState: AUTH_FILE }); + + const page = await context.newPage(); + const browsePage = new BrowsePage(page); + + await browsePage.triggerAndMarkDagRun(hitlDagId, "success"); + await browsePage.triggerAndMarkDagRun(hitlDagId, "failed"); + await context.close(); + }); + + test("Verify the actions list/table is displayed (or empty state if none)", async ({ page }) => { Review Comment: In this test I am verifying the both the aspect , where I am checking if the list/table is empty or have action in it , if it have action it also verify the action details (dag id , task id , dag run id ) columns are present there -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
