23 lines
678 B
JavaScript
23 lines
678 B
JavaScript
import { injectRuffleAndWait, openTest } from "../../utils.js";
|
|
import { expect, use } from "chai";
|
|
import chaiHtml from "chai-html";
|
|
import fs from "fs";
|
|
|
|
use(chaiHtml);
|
|
|
|
describe("Embed without src attribute", () => {
|
|
it("loads the test", async () => {
|
|
await openTest(browser, import.meta.dirname);
|
|
});
|
|
|
|
it("doesn't polyfill with ruffle", async () => {
|
|
await injectRuffleAndWait(browser);
|
|
const actual = await browser.$("#test-container").getHTML(false);
|
|
const expected = fs.readFileSync(
|
|
`${import.meta.dirname}/expected.html`,
|
|
"utf8",
|
|
);
|
|
expect(actual).html.to.equal(expected);
|
|
});
|
|
});
|