Improve tables design (#6330)

This commit is contained in:
naman-bruno
2025-12-10 19:39:16 +05:30
committed by GitHub
parent c00cbf6cb2
commit 1ed957978a
28 changed files with 1749 additions and 1721 deletions

View File

@@ -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();