DEV: Update tests after changes in core (#103)

This commit is contained in:
Alan Guo Xiang Tan 2022-07-28 16:32:51 +08:00 committed by GitHub
parent fc2750e1d1
commit 2589e82212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,10 @@ acceptance("Docs - Sidebar with docs disabled", function (needs) {
test("docs sidebar link is hidden", async function (assert) {
await visit("/");
await click(
".sidebar-section-community .sidebar-more-section-links-details-summary"
);
assert.ok(
!exists(".sidebar-section-link-docs"),
"it does not display the docs link in sidebar"
@ -44,6 +48,10 @@ acceptance("Docs - Sidebar with docs enabled", function (needs) {
test("clicking on docs link", async function (assert) {
await visit("/");
await click(
".sidebar-section-community .sidebar-more-section-links-details-summary"
);
assert.strictEqual(
query(".sidebar-section-link-docs").textContent.trim(),
I18n.t("sidebar.docs_link_text"),