Skip to content

Commit

Permalink
fix(addon-editor): using editor-socket inside editor to fix editor st…
Browse files Browse the repository at this point in the history
…yles (#2631)
  • Loading branch information
vladimirpotekhin authored Sep 7, 2022
1 parent a885ad4 commit 68b0acb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/addon-editor/components/editor/editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
[tuiDropdownSelection]="dropdownSelectionHandler"
[tuiDropdown]="dropdown"
>
<div
<tui-editor-socket
tuiTiptapEditor
spellcheck="false"
class="tui-editor-socket"
[value]="value"
[editable]="interactive"
(valueChange)="onModelChange($event)"
(stateChange)="(0)"
></div>
></tui-editor-socket>
</div>

<ng-template #dropdown>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe(`Examples with preview images`, () => {
.matchImageSnapshot(`3-1-two-visible-image`, {capture: `viewport`});

cy.get(`@wrapper`)
.find(`tui-editor-socket`)
.find(`tui-editor-socket._preview-image`)
.find(`img`)
.filter(`[src="assets/images/big-wallpaper.jpg"]`)
.filter(`:visible`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ describe(`Table`, () => {
});

it(`Dynamic column`, () => {
cy.get(`tui-table-example-6 button`).first().click();
cy.get(`#dynamic button`).first().click();

cy.get(`tui-table-example-6`).matchImageSnapshot(`table-dynamic`);
cy.get(`#dynamic`).matchImageSnapshot(`table-dynamic`);
});
});

0 comments on commit 68b0acb

Please sign in to comment.