Convert the integration test-files to JavaScript modules

This commit is contained in:
Jonas Jenwald 2023-10-12 13:16:58 +02:00
parent 33456d3704
commit 9878d058fe
9 changed files with 83 additions and 68 deletions

View file

@ -13,24 +13,23 @@
* limitations under the License.
*/
const {
import {
closePages,
dragAndDropAnnotation,
getEditors,
getEditorSelector,
getSelectedEditors,
getFirstSerialized,
getSelectedEditors,
getSerialized,
loadAndWait,
scrollIntoView,
waitForEvent,
waitForSelectedEditor,
waitForUnselectedEditor,
waitForSerialized,
waitForStorageEntries,
} = require("./test_utils.js");
const PNG = require("pngjs").PNG;
waitForUnselectedEditor,
} from "./test_utils.mjs";
import { PNG } from "pngjs";
const copyPaste = async page => {
let promise = waitForEvent(page, "copy");