Files
filteredandGitHub 992659ab3d [e2e] Add recreate virtual environment test (#914)
* nit - Rename

* [e2e] Add recreate virtual environment test

* Add test expectation

* Fix button name

* Replace manual test env cleanup with disposable

* [Dev] Fix vscode debug + playwright ext. conflict

Breaks on caught exceptions that are within another class member

* Fix venv creation - use confirm buttons & wait for server start

* Fix server start timeout too short

* Fix new disposable clean up never runs
2025-02-17 09:12:50 +11:00

19 lines
538 B
TypeScript

import type { Page } from '@playwright/test';
export class TestTaskCard {
readonly rootEl;
readonly button;
readonly isRunningIndicator;
constructor(
readonly window: Page,
title: RegExp,
buttonText: string
) {
const titleDiv = window.getByText(title);
this.rootEl = window.locator('div.task-div').filter({ has: titleDiv });
this.button = this.rootEl.locator('_vue=Button').filter({ hasText: buttonText });
this.isRunningIndicator = this.button.and(this.rootEl.locator('.p-button-loading'));
}
}