This is an automated email from the ASF dual-hosted git repository.
kayx23 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new d830317b5d2 test: follow the ai-proxy chat completions request table
in 3.21 (#2157)
d830317b5d2 is described below
commit d830317b5d2641780d6ddb8fb45838542cc7cbed
Author: Ming Wen <[email protected]>
AuthorDate: Fri Nov 20 18:35:52 2026 +0800
test: follow the ai-proxy chat completions request table in 3.21 (#2157)
* test: follow the ai-proxy chat completions request table in 3.21
* test: verify the request table region’s computed accessible name
---
next/tests/e2e/docs-mobile-layout.spec.mjs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/next/tests/e2e/docs-mobile-layout.spec.mjs
b/next/tests/e2e/docs-mobile-layout.spec.mjs
index 2e0ed9b1e7e..8848f057f2f 100644
--- a/next/tests/e2e/docs-mobile-layout.spec.mjs
+++ b/next/tests/e2e/docs-mobile-layout.spec.mjs
@@ -913,15 +913,18 @@ test('non-Attributes field schemas intentionally use
semantic table behavior', a
'mobile APISIX docs only exist in the final overlaid tree',
);
+ const shellSelector = '.docs-content h3#chat-completions-request-format +
.table-shell';
+ const accessibleName = /^Chat Completions Request Format$/i;
await assertPluginTable(page, {
path: '/docs/apisix/plugins/ai-proxy/',
- shellSelector: '.docs-content h2#request-format + .table-shell',
+ shellSelector,
contentSelector: '.docs-content',
expectedColumns: ATTRIBUTE_COLUMNS.degraphql,
shouldOverflow: true,
minimumShellWidth: 340,
- accessibleName: /Request Format/i,
+ accessibleName,
});
+ await
expect(page.locator(shellSelector).locator('.table-scroll')).toHaveAccessibleName(accessibleName);
});
test('archived plugin table overflow remains local and keyboard accessible on
mobile', async ({ page }) => {