Skip to content

Commit 58a2230

Browse files
committed
Update documentation, and clean unused code.
1 parent 4c63433 commit 58a2230

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,16 @@ The execution will apply as few changes as necessary and so you will be able to
165165
Both the result of the `retrieve` function and the argument of the `apply` function are objects in the format defined in your `schema.json`.
166166
In this example, you would return `{enabled: boolean}` as part of `retrieve`, and expect `{enabled: boolean}` as argument in `apply`.
167167

168+
### Formatting
169+
170+
After plugin development is completed, run the following command to ensure your code adheres to the project's style guidelines:
171+
172+
```shell
173+
npm run format
174+
```
175+
176+
This will automatically format your TypeScript and configuration files (e.g., indentation, line breaks, trailing commas) to maintain consistency across the codebase.
177+
168178
## Testing
169179

170180
To run **unit tests**:

src/plugins/auth-providers/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ export class AuthProviders extends BrowserforcePlugin {
7878
this.browserforce.logger?.log(`Navigating to edit page for ${developerName}: ${editPageUrl}`);
7979
await using page = await this.browserforce.openPage(editPageUrl);
8080

81-
// Wait for the page/frame to load - handle both Lightning (iframe) and Classic UI
82-
// Use ConsumerSecret as the selector to wait for, or fallback to ConsumerKey
83-
const formSelector = `${CONSUMER_SECRET_SELECTOR}, ${CONSUMER_KEY_SELECTOR}`;
84-
const frameOrPage = await this.browserforce.waitForSelectorInFrameOrPage(page, formSelector);
8581
// Update ConsumerSecret if provided
8682
if (authProviderConfig.consumerSecret !== undefined) {
8783
await page.locator(CONSUMER_SECRET_SELECTOR).fill(authProviderConfig.consumerSecret);

0 commit comments

Comments
 (0)