Skip to content

Commit 545e05a

Browse files
mshanemcclaude
andcommitted
test(apex): use numeric separators instead of eslint-disable - W-22968398
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e7e0ada commit 545e05a

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

packages/salesforcedx-vscode-apex-replay-debugger/test/playwright/specs/debugApexTests.desktop.spec.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
/* eslint-disable unicorn/numeric-separators-style -- timeouts use numeric literals; rule conflicts for 4–5 digit values */
87
import { expect, type Page } from '@playwright/test';
98
import {
109
clickCodeLens,
@@ -167,7 +166,7 @@ const class2TestContent = [
167166
].join('\n');
168167

169168
test('Debug Apex Tests: codelens and Test Explorer entry points', async ({ page }) => {
170-
test.setTimeout(600000);
169+
test.setTimeout(600_000);
171170
const consoleErrors = setupConsoleMonitoring(page);
172171
const networkErrors = setupNetworkMonitoring(page);
173172

@@ -181,32 +180,32 @@ test('Debug Apex Tests: codelens and Test Explorer entry points', async ({ page
181180
await ensureOutputPanelOpen(page);
182181
await selectOutputChannel(page, 'Salesforce Metadata');
183182
await executeCommandWithCommandPalette(page, metadataNls.project_deploy_start_ignore_conflicts_default_org_text);
184-
await waitForOutputChannelText(page, { expectedText: 'Starting metadata deployment', timeout: 30000 });
185-
await waitForOutputChannelText(page, { expectedText: 'Deployed Source', timeout: 120000 });
183+
await waitForOutputChannelText(page, { expectedText: 'Starting metadata deployment', timeout: 30_000 });
184+
await waitForOutputChannelText(page, { expectedText: 'Deployed Source', timeout: 120_000 });
186185
await saveScreenshot(page, 'setup.classes-created.png');
187186
});
188187

189188
await test.step('wait for CodeLens in test class', async () => {
190189
// Apex LS must finish indexing before CodeLens appear; CI is slower
191190
const indexingComplete = page.getByRole('button', { name: /Indexing complete/ });
192-
await expect(indexingComplete).toBeVisible({ timeout: 120000 });
191+
await expect(indexingComplete).toBeVisible({ timeout: 120_000 });
193192
await openFileByName(page, 'ExampleApexClass1Test.cls');
194193
const codelens = page.locator('.codelens-decoration a').filter({ hasText: /Run Test|Debug Test/ });
195-
await expect(codelens.first()).toBeVisible({ timeout: 90000 });
194+
await expect(codelens.first()).toBeVisible({ timeout: 90_000 });
196195
await saveScreenshot(page, 'step.codelens-visible.png');
197196
});
198197

199198
await test.step('Debug All Tests via class-level CodeLens', async () => {
200199
await openFileByName(page, 'ExampleApexClass1Test.cls');
201-
await clickCodeLens(page, 'Debug All Tests', { timeout: 180000 });
200+
await clickCodeLens(page, 'Debug All Tests', { timeout: 180_000 });
202201
await waitForSuccessNotification(page);
203202
await continueDebugSession(page);
204203
await saveScreenshot(page, 'step.debug-all-tests.png');
205204
});
206205

207206
await test.step('Debug Test via method-level CodeLens', async () => {
208207
await openFileByName(page, 'ExampleApexClass2Test.cls');
209-
await clickCodeLens(page, 'Debug Test', { timeout: 180000 });
208+
await clickCodeLens(page, 'Debug Test', { timeout: 180_000 });
210209
await waitForSuccessNotification(page);
211210
await continueDebugSession(page);
212211
await saveScreenshot(page, 'step.debug-single-test.png');

0 commit comments

Comments
 (0)