mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 06:28:33 +00:00
Improve tables design (#6330)
This commit is contained in:
@@ -63,18 +63,18 @@ test.describe('Variable Tooltip', () => {
|
||||
});
|
||||
|
||||
await test.step('Test secret variable with toggle', async () => {
|
||||
// Move mouse away to dismiss any active tooltip
|
||||
await page.mouse.move(0, 0);
|
||||
|
||||
// Add header with secret
|
||||
await page.getByRole('tab', { name: 'Headers' }).click();
|
||||
await page.locator('button.btn-action').filter({ hasText: 'Add Header' }).click();
|
||||
|
||||
const headerNameEditor = page.locator('table tbody tr').first().locator('td').first().locator('.CodeMirror');
|
||||
const headerTable = page.locator('table').first();
|
||||
const headerRow = headerTable.locator('tbody tr').first();
|
||||
|
||||
const headerNameEditor = headerRow.locator('.CodeMirror').first();
|
||||
await headerNameEditor.click();
|
||||
await page.keyboard.type('Authorization');
|
||||
|
||||
const headerValueEditor = page.locator('table tbody tr').first().locator('td').nth(1).locator('.CodeMirror');
|
||||
const headerValueEditor = headerRow.locator('.CodeMirror').nth(1);
|
||||
await headerValueEditor.click();
|
||||
await page.keyboard.type('Bearer {{secretToken}}');
|
||||
await page.keyboard.press('Control+s');
|
||||
@@ -377,12 +377,12 @@ test.describe('Variable Tooltip', () => {
|
||||
await expect(varRow).toBeVisible();
|
||||
|
||||
// Check variable name
|
||||
const varNameInput = varRow.locator('td').first().locator('input[type="text"]');
|
||||
const varNameInput = varRow.locator('td').nth(1).getByRole('textbox');
|
||||
await expect(varNameInput).toBeVisible();
|
||||
await expect(varNameInput).toHaveValue('myApiKey');
|
||||
|
||||
// Check variable value
|
||||
const varValueTd = varRow.locator('td').nth(1);
|
||||
const varValueTd = varRow.locator('td').nth(2);
|
||||
const varValue = varValueTd.locator('.CodeMirror');
|
||||
await expect(varValue).toBeVisible();
|
||||
const varValueContent = await varValue.locator('.CodeMirror-line').textContent();
|
||||
|
||||
Reference in New Issue
Block a user