Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs-tests/assertions/account-billing.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
{
"id": "plan-consumption-graph",
"kind": "element_text",
"target": "Plan Consumption",
"target": "Plan consumption",
"at": "/billing",
"page_context": "Billing page > Current period tab > Plan Consumption graph",
"source_quote": "the tab features a **Plan Consumption** Graph.",
"source_quote": "the tab features a **Plan consumption** graph.",
"source_line": 13,
"needs_auth": true
},
Expand Down
4 changes: 2 additions & 2 deletions docs-tests/assertions/account-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
{
"id": "account-level-integrations-label",
"kind": "element_text",
"target": "account-level integrations",
"target": "Account-level integrations",
"at": "/settings/integrations",
"page_context": "API & Integrations tab",
"source_quote": "**account-level integrations**, and **Actor OAuth accounts**.",
"source_quote": "**Account-level integrations**, and **Actor OAuth accounts**.",
"source_line": 45,
"needs_auth": true
},
Expand Down
15 changes: 11 additions & 4 deletions docs-tests/tests/from-doc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,24 @@ async function runAssertion(page: Page, a: Assertion): Promise<void> {
async function checkElement(page: Page, a: Assertion): Promise<void> {
switch (a.kind) {
case 'element_button': {
// Exact matching. Substring matching passes whenever the documented
// label is *contained* in what the Console renders, which hides the
// most common form of drift: a casing change. "Plan Consumption"
// matched a live "Plan consumption" and the check stayed green.
// Exact is still whitespace-trimmed, so only wording, casing and
// trailing decoration (a count badge, say) can break a target — all
// of which are things the docs should be updated to match.
await page
.getByRole('button', { name: a.target, exact: false })
.getByRole('button', { name: a.target, exact: true })
.first()
.waitFor({ state: 'visible', timeout: 10_000 });
return;
}
case 'element_tab': {
// Playwright's `tab` role doesn't always match the Console's tab impl.
// Fall back to a text match if the role lookup misses.
const byRole = page.getByRole('tab', { name: a.target, exact: false }).first();
const byText = page.getByText(a.target, { exact: false }).first();
const byRole = page.getByRole('tab', { name: a.target, exact: true }).first();
const byText = page.getByText(a.target, { exact: true }).first();
try {
await byRole.waitFor({ state: 'visible', timeout: 5_000 });
} catch {
Expand All @@ -132,7 +139,7 @@ async function checkElement(page: Page, a: Assertion): Promise<void> {
return;
}
case 'element_text': {
await page.getByText(a.target, { exact: false }).first().waitFor({ state: 'visible', timeout: 10_000 });
await page.getByText(a.target, { exact: true }).first().waitFor({ state: 'visible', timeout: 10_000 });
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion sources/platform/account/billing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ slug: /account/billing

The **Current period** tab is a comprehensive resource for understanding your platform usage during the ongoing billing cycle. It provides an overview of your total usage and indicates the start and end dates of the current billing period.

In addition to this, the tab features a **Plan Consumption** Graph. It shows how much of your free or paid plan has been utilized up to this point. The graph offers a broad perspective of your overall usage.
In addition to this, the tab features a **Plan consumption** graph. It shows how much of your free or paid plan has been utilized up to this point. The graph offers a broad perspective of your overall usage.

Apart from the platform usage breakdown graph, this tab provides more detailed information on the usage of different platform services. You can explore the sections under the graph. You can access detailed statistics related to **Actors**, **Data transfer**, **Proxy**, and **Storage**.

Expand Down
2 changes: 1 addition & 1 deletion sources/platform/account/settings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In the **Session** section, you can adjust the session configuration. You can mo

## API & Integrations

The **API & Integrations** tab provides essential tools for accessing the Apify platform programmatically. Here, you can manage your **API tokens**, which are necessary for using the [Apify API](https://docs.apify.com/api/v2). The tab also shows **third-party apps and services** connected to your account, **account-level integrations**, and **Actor OAuth accounts**. For detailed guidance on utilizing these integrations, refer to the [Integrations documentation](https://docs.apify.com/integrations).
The **API & Integrations** tab provides essential tools for accessing the Apify platform programmatically. Here, you can manage your **API tokens**, which are necessary for using the [Apify API](https://docs.apify.com/api/v2). The tab also shows **third-party apps and services** connected to your account, **Account-level integrations**, and **Actor OAuth accounts**. For detailed guidance on utilizing these integrations, refer to the [Integrations documentation](https://docs.apify.com/integrations).

### MCP connectors

Expand Down
Loading