Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Jul 31, 2024
2 parents 2d4a214 + 0a039c7 commit b4185f6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions packages/eui/src/components/combo_box/combo_box.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('EuiComboBox', () => {
cy.get('[data-test-subj="comboBoxSearchInput"]').should(
'have.attr',
'style',
'inline-size: 121px;'
'inline-size: 122px;'
);
});

Expand All @@ -70,7 +70,7 @@ describe('EuiComboBox', () => {
cy.get('[data-test-subj="comboBoxSearchInput"]').should(
'have.attr',
'style',
'inline-size: 67px;'
'inline-size: 65px;'
);

cy.realPress('{downarrow}');
Expand All @@ -92,7 +92,7 @@ describe('EuiComboBox', () => {
cy.get('[data-test-subj="comboBoxSearchInput"]').should(
'have.attr',
'style',
'inline-size: 387px;'
'inline-size: 388px;'
);
cy.get('[data-test-subj="comboBoxSearchInput"]')
.invoke('width')
Expand Down Expand Up @@ -156,7 +156,7 @@ describe('EuiComboBox', () => {
cy.get('.euiTextTruncate').should('exist');
cy.get('[data-test-subj="truncatedText"]').should(
'have.text',
'Lorem ipsum …piscing elit.'
'Lorem ipsum …iscing elit.'
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ describe('EuiDataGridCellPopover', () => {
cy.get('[data-test-subj="euiDataGridExpansionPopover"]')
.should('have.css', 'top', '73px')
.should('have.css', 'left')
.and('match', /^254[.\d]+px$/);
.and('match', /^255[.\d]+px$/);
cy.get('[data-test-subj="euiDataGridExpansionPopover"]')
.should('have.css', 'width')
.and('match', /^144[.\d]+px$/);
.and('match', /^143[.\d]+px$/);
});

describe('max popover dimensions', () => {
Expand Down
10 changes: 5 additions & 5 deletions packages/eui/src/components/form/range/range.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const sharedProps = {
},
],
};
const firstExpectedLevel = /^0px 255[.0-9]+px$/;
const secondExpectedLevel = /^71[.0-9]+px 0px$/;
const firstExpectedLevel = /^0px 256[.0-9]+px$/;
const secondExpectedLevel = /^72[.0-9]+px 0px$/;

describe('EuiRange', () => {
const props = {
Expand All @@ -59,7 +59,7 @@ describe('EuiRange', () => {
cy.get('.euiRangeTick')
.last()
.should('have.css', 'inset-inline-start')
.and('match', /^319[.0-9]+px$/);
.and('match', /^320[.0-9]+px$/);

// Levels - present in both EuiRangeLevels and EuiHighlight
cy.get('.euiRangeLevel')
Expand All @@ -84,12 +84,12 @@ describe('EuiRange', () => {
cy.get('.euiRangeHighlight > div')
.should('have.css', 'margin-inline-start', '0px')
.should('have.css', 'inline-size')
.and('match', /^163[.0-9]+px$/);
.and('match', /^164[.0-9]+px$/);

// Tooltip
cy.get('.euiRangeTooltip > output')
.should('have.css', 'inset-inline-start')
.and('match', /^155[.0-9]+px$/);
.and('match', /^156[.0-9]+px$/);
};

it('renders ticks, levels, highlights, and tooltips in their correct positions', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/eui/src/components/selectable/selectable.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe('EuiSelectable', () => {
cy.get('.euiTextTruncate').should('exist');
cy.get('[data-test-subj="truncatedText"]').should(
'have.text',
'Lorem ipsum d…ipiscing elit.'
'Lorem ipsum d…piscing elit.'
);
});

Expand Down Expand Up @@ -354,7 +354,7 @@ describe('EuiSelectable', () => {
cy.viewport(100, 100);
cy.get('[data-test-subj="truncatedText"]').should(
'have.text',
'Lor…lit.'
'Lor…it.'
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('EuiTextTruncate', () => {
});

describe('truncation', () => {
const expectedMiddleOutput = 'Lorem ipsum d…adipiscing elit';
const expectedMiddleOutput = 'Lorem ipsum d…dipiscing elit';
const expectedStartOutput = '…t, consectetur adipiscing elit';
const expectedEndOutput = 'Lorem ipsum dolor sit amet, …';
const expectedStartEndOutput = '…lor sit amet, consectetur a…';
Expand Down
2 changes: 1 addition & 1 deletion packages/eui/src/components/text_truncate/utils.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Truncation utils', () => {
start: '...t, consectetur adipiscing elit',
end: 'Lorem ipsum dolor sit amet, ...',
startEnd: '...lor sit amet, consectetur a...',
middle: 'Lorem ipsum d...adipiscing elit',
middle: 'Lorem ipsum d...dipiscing elit',
};

describe('truncation types logic', () => {
Expand Down

0 comments on commit b4185f6

Please sign in to comment.