Skip to content

Commit

Permalink
fix: strange behaviour on Windows (#821)
Browse files Browse the repository at this point in the history
* fix: strange behaviour on Windows

* chore: update

* chore: update

* chore: update
  • Loading branch information
splincode authored Feb 28, 2024
1 parent 76f1395 commit 420a19c
Show file tree
Hide file tree
Showing 7 changed files with 1,522 additions and 944 deletions.
2,433 changes: 1,519 additions & 914 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"@types/webpack-env": "1.18.4",
"angular-http-server": "1.12.0",
"core-js": "2.6.12",
"cypress": "13.6.1",
"cypress": "13.6.6",
"cypress-image-snapshot": "4.0.1",
"dompurify": "3.0.6",
"eslint": "8.55.0",
Expand Down
1 change: 0 additions & 1 deletion projects/demo-cypress/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const TUI_CYPRESS_CONFIG: Cypress.ConfigOptions = {
runMode: 0, // Configure retry attempts for `cypress run`
openMode: 0, // Configure retry attempts for `cypress open`
},
numTestsKeptInMemory: 0,
env: {
waitBeforeScreenshot: 1000,
waitBeforeAction: 50,
Expand Down
4 changes: 0 additions & 4 deletions projects/demo-cypress/cypress/support/editor/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ export const HTML_EDITOR_BASIC_EXAMPLE = `<p><strong>WYSIWYG</strong> (<em>What

export const HTML_EDITOR_EXAMPLE_UL = `<ul><li>1</li><li>2</li></ul><ol><li>A</li><li>B</li></ol>`;

export const HTML_EDITOR_EXAMPLE_DETAILS = `<div class="t-details-wrapper t-details-wrapper_rendered"><details data-opened="true"><summary><p><span>Details</span></p></summary><div data-type="details-content"><h1>Title</h1><h2>Subtitle</h2><p><span style="font-size: 17px">Large</span></p><p><span style="font-size: 15px">Normal</span></p><p><span style="font-size: 13px">Small</span></p></div></details><button class="t-details-arrow"></button></div><p></p>`;

export const HTML_EDITOR_EXAMPLE_LEGACY_DETAILS = `<div class="details-wrapper details-wrapper_rendered"><details data-opened="true"><summary><p><span>Details</span></p></summary><div data-type="details-content"><h1>Title</h1><h2>Subtitle</h2><p><span style="font-size: 17px">Large</span></p><p><span style="font-size: 15px">Normal</span></p><p><span style="font-size: 13px">Small</span></p></div></details><button class="details-arrow"></button></div><p></p>`;

export const HTML_EDITOR_EXAMPLE_HIGHLIGHT_BLOCK = `<pre><code>Hello world</code></pre><p><code>Tell me please, why?</code></p><pre><code>export class MyName { readonly a = 5; }</code></pre><pre><code>https://github.com/taiga-family/taiga-ui</code></pre><p></p>`;

export const HTML_EDITOR_EXAMPLE_BLOCKQUOTE = `<blockquote><p>123123123a</p><p>112323</p></blockquote><p></p>`;
Expand Down
23 changes: 0 additions & 23 deletions projects/demo-cypress/cypress/tests/editor-api.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import {
} from '../support/editor/helpers';
import {
HTML_EDITOR_EXAMPLE_BLOCKQUOTE,
HTML_EDITOR_EXAMPLE_DETAILS,
HTML_EDITOR_EXAMPLE_HIGHLIGHT_BLOCK,
HTML_EDITOR_EXAMPLE_LEGACY_DETAILS,
HTML_EDITOR_EXAMPLE_LONG_WORD_UL,
HTML_EDITOR_EXAMPLE_NESTED_OL_UL,
HTML_EDITOR_EXAMPLE_NESTED_UL,
Expand Down Expand Up @@ -84,27 +82,6 @@ describe(`Editor API`, () => {
});
});

describe(`details`, () => {
it(`prevents extra margin between top border of details and content`, () => {
tuiVisitEditorApiPage({content: HTML_EDITOR_EXAMPLE_DETAILS});

tuiGetDemoContent()
.tuiWaitBeforeScreenshot()
.matchImageSnapshot(`prevents-extra-margin-details`);
});

it(`legacy`, () => {
tuiVisitEditorApiPage({content: ``});

cy.get(`.t-table tr`)
.eq(2)
.findByAutomationId(`tui-primitive-textfield__native-input`)
.type(HTML_EDITOR_EXAMPLE_LEGACY_DETAILS, {force: true, delay: 0});

tuiGetDemoContent().tuiWaitBeforeScreenshot().matchImageSnapshot(`legacy`);
});
});

describe(`highlight`, () => {
it(`code + pre/code`, () => {
tuiVisitEditorApiPage({content: ``});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
max-height: inherit;
min-height: 10rem;
box-sizing: border-box;
overflow: hidden;
}

.t-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion taiga-ui
Submodule taiga-ui updated 382 files

0 comments on commit 420a19c

Please sign in to comment.