|
1 | 1 | import {expect, test} from '@playwright/test'; |
2 | 2 |
|
3 | 3 | import {wait} from '../../../../src/utils'; |
| 4 | +import {getClipboardContent} from '../../../utils/clipboard'; |
4 | 5 | import { |
5 | 6 | backend, |
6 | 7 | dsStoragePoolsTableName, |
@@ -161,7 +162,7 @@ test.describe('Object Summary', async () => { |
161 | 162 | expect(vslotsColumns).not.toEqual(storagePoolsColumns); |
162 | 163 | }); |
163 | 164 |
|
164 | | - test.only('ACL tab shows correct access rights', async ({page}) => { |
| 165 | + test('ACL tab shows correct access rights', async ({page}) => { |
165 | 166 | const pageQueryParams = { |
166 | 167 | schema: '/local/.sys_health', |
167 | 168 | database: '/local', |
@@ -199,4 +200,22 @@ test.describe('Object Summary', async () => { |
199 | 200 | {group: 'DATABASE-ADMINS', permissions: ['Manage']}, |
200 | 201 | ]); |
201 | 202 | }); |
| 203 | + |
| 204 | + test('Copy path copies correct path to clipboard', async ({page}) => { |
| 205 | + const pageQueryParams = { |
| 206 | + schema: dsVslotsSchema, |
| 207 | + database: tenantName, |
| 208 | + general: 'query', |
| 209 | + }; |
| 210 | + const tenantPage = new TenantPage(page); |
| 211 | + await tenantPage.goto(pageQueryParams); |
| 212 | + |
| 213 | + const objectSummary = new ObjectSummary(page); |
| 214 | + await objectSummary.clickActionMenuItem(dsVslotsTableName, RowTableAction.CopyPath); |
| 215 | + |
| 216 | + await page.waitForTimeout(100); |
| 217 | + |
| 218 | + const clipboardContent = await getClipboardContent(page); |
| 219 | + expect(clipboardContent).toBe('.sys/ds_vslots'); |
| 220 | + }); |
202 | 221 | }); |
0 commit comments