DEV: Change class name

This commit is contained in:
Keegan George 2022-10-12 15:00:22 -07:00
parent 73b336c36d
commit 15e322bd01
No known key found for this signature in database
GPG Key ID: 91B40E38537AC000
2 changed files with 3 additions and 7 deletions

View File

@ -16,7 +16,6 @@ export default apiInitializer("0.11.1", (api) => {
const openPopupBtn = document.createElement("button"); const openPopupBtn = document.createElement("button");
openPopupBtn.classList.add( openPopupBtn.classList.add(
"open-popup-link", "open-popup-link",
"btn-edit-md-table",
"btn-default", "btn-default",
"btn", "btn",
"btn-icon-text" "btn-icon-text"

View File

@ -64,12 +64,9 @@ acceptance("Table Builder - Edit Table", function (needs) {
test("Can see edit button on post with table", async function (assert) { test("Can see edit button on post with table", async function (assert) {
await visit("/t/960"); await visit("/t/960");
await focus(document.querySelector(".cooked .md-table")); await focus(document.querySelector(".cooked .md-table"));
assert.ok(exists("button.btn-edit-md-table"), "Edit Table button exists"); assert.ok(exists("button.btn-edit-table"), "Edit Table button exists");
assert.ok( assert.ok(visible("button.btn-edit-table"), "Edit Table button is visible");
visible("button.btn-edit-md-table"), await click("button.btn-edit-table");
"Edit Table button is visible"
);
await click("button.btn-edit-md-table");
assert.ok( assert.ok(
exists(".insert-table-modal-modal"), exists(".insert-table-modal-modal"),
"Table Builder modal exists" "Table Builder modal exists"