Add Selenium integration test framework

This commit is contained in:
gsb
2026-04-29 22:15:02 +00:00
parent 1198791505
commit 3e8d3388f6
12 changed files with 703 additions and 7 deletions
+10 -6
View File
@@ -146,12 +146,7 @@ export class Ribbit {
this.emitter.off(event, callback);
}
run(): void {
this.element.classList.add('loaded');
if (this.autoToolbar) {
this.element.parentNode?.insertBefore(this.toolbar.render(), this.element);
}
this.view();
protected emitReady(): void {
this.emitter.emit('ready', {
markdown: this.getMarkdown(),
html: this.getHTML(),
@@ -160,6 +155,15 @@ export class Ribbit {
});
}
run(): void {
this.element.classList.add('loaded');
if (this.autoToolbar) {
this.element.parentNode?.insertBefore(this.toolbar.render(), this.element);
}
this.view();
this.emitReady();
}
getState(): string | null {
return this.state;
}