2024-08-06 13:15:00 -04:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-12 11:21:37 -05:00
|
|
|
import { BasePage } from './base.js';
|
2024-08-06 13:15:00 -04:00
|
|
|
|
2024-08-19 16:00:16 -04:00
|
|
|
export class BaseResourcePage extends BasePage {
|
2024-08-06 13:15:00 -04:00
|
|
|
async deleteResource() {
|
|
|
|
|
await this.page.getByText('Manage').click();
|
|
|
|
|
await this.page.getByRole('button', { name: 'Delete' }).click();
|
|
|
|
|
await this.page.getByText('OK', { exact: true }).click();
|
|
|
|
|
await this.dismissSuccessAlert();
|
|
|
|
|
}
|
|
|
|
|
}
|