DEV: Update tests due to core changes (#128)

This commit is contained in:
Alan Guo Xiang Tan 2023-04-12 15:52:30 +08:00 committed by GitHub
parent 8b851ab3d4
commit 0b4d2f3691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ acceptance("Docs - Sidebar with docs disabled", function (needs) {
);
assert.ok(
!exists(".sidebar-section-link-docs"),
!exists(".sidebar-section-link[data-link-name='docs']"),
"it does not display the docs link in sidebar"
);
});
@ -55,18 +55,18 @@ acceptance("Docs - Sidebar with docs enabled", function (needs) {
);
assert.strictEqual(
query(".sidebar-section-link-docs").textContent.trim(),
query(".sidebar-section-link[data-link-name='docs']").textContent.trim(),
I18n.t("sidebar.docs_link_text"),
"displays the right text for the link"
);
assert.strictEqual(
query(".sidebar-section-link-docs").title,
query(".sidebar-section-link[data-link-name='docs']").title,
I18n.t("sidebar.docs_link_title"),
"displays the right title for the link"
);
await click(".sidebar-section-link-docs");
await click(".sidebar-section-link[data-link-name='docs']");
assert.strictEqual(
currentURL(),