2023-05-30 20:24:43 +00:00
|
|
|
const { openTest, injectRuffleAndWait } = require("../../utils");
|
2020-11-27 00:56:37 +00:00
|
|
|
const { expect, use } = require("chai");
|
|
|
|
const chaiHtml = require("chai-html");
|
|
|
|
const fs = require("fs");
|
|
|
|
|
|
|
|
use(chaiHtml);
|
|
|
|
|
|
|
|
describe("Object without data attribute", () => {
|
2021-08-21 14:34:08 +00:00
|
|
|
it("loads the test", async () => {
|
2023-05-30 20:24:43 +00:00
|
|
|
await openTest(browser, __dirname);
|
2020-11-27 00:56:37 +00:00
|
|
|
});
|
|
|
|
|
2021-08-21 14:34:08 +00:00
|
|
|
it("doesn't polyfill with ruffle", async () => {
|
2023-05-30 20:24:43 +00:00
|
|
|
await injectRuffleAndWait(browser);
|
2021-08-21 14:34:08 +00:00
|
|
|
const actual = await browser.$("#test-container").getHTML(false);
|
2020-11-27 00:56:37 +00:00
|
|
|
const expected = fs.readFileSync(`${__dirname}/expected.html`, "utf8");
|
|
|
|
expect(actual).html.to.equal(expected);
|
|
|
|
});
|
|
|
|
});
|