DEV: Update tests after changes in core (#103)
This commit is contained in:
parent
fc2750e1d1
commit
2589e82212
|
@ -21,6 +21,10 @@ acceptance("Docs - Sidebar with docs disabled", function (needs) {
|
||||||
test("docs sidebar link is hidden", async function (assert) {
|
test("docs sidebar link is hidden", async function (assert) {
|
||||||
await visit("/");
|
await visit("/");
|
||||||
|
|
||||||
|
await click(
|
||||||
|
".sidebar-section-community .sidebar-more-section-links-details-summary"
|
||||||
|
);
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
!exists(".sidebar-section-link-docs"),
|
!exists(".sidebar-section-link-docs"),
|
||||||
"it does not display the docs link in sidebar"
|
"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) {
|
test("clicking on docs link", async function (assert) {
|
||||||
await visit("/");
|
await visit("/");
|
||||||
|
|
||||||
|
await click(
|
||||||
|
".sidebar-section-community .sidebar-more-section-links-details-summary"
|
||||||
|
);
|
||||||
|
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
query(".sidebar-section-link-docs").textContent.trim(),
|
query(".sidebar-section-link-docs").textContent.trim(),
|
||||||
I18n.t("sidebar.docs_link_text"),
|
I18n.t("sidebar.docs_link_text"),
|
||||||
|
|
Loading…
Reference in New Issue