Skip to content

Commit 231e44c

Browse files
committed
fix tests
1 parent 91baff3 commit 231e44c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/main/src/components/ObjectPage/ObjectPage.cy.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('ObjectPage', () => {
114114
cy.get('[ui5-tabcontainer]').findUi5TabByText('Section 15').should('have.attr', 'aria-selected', 'true');
115115

116116
if (mode === ObjectPageMode.Default) {
117-
cy.findByTestId('op').scrollTo(0, 4660);
117+
cy.findByTestId('op').scrollTo(0, 4750);
118118

119119
cy.findByText('Content 7').should('be.visible');
120120
cy.get('[ui5-tabcontainer]').findUi5TabByText('Section 7').should('have.attr', 'aria-selected', 'true');
@@ -124,7 +124,7 @@ describe('ObjectPage', () => {
124124
for (let i = 0; i < 15; i++) {
125125
cy.findByText('Add').click();
126126
}
127-
cy.findByTestId('op').scrollTo(0, 4660);
127+
cy.findByTestId('op').scrollTo(0, 4750);
128128

129129
cy.findByText('Content 7').should('be.visible');
130130
cy.get('[ui5-tabcontainer]').findUi5TabByText('Section 7').should('have.attr', 'aria-selected', 'true');
@@ -712,19 +712,19 @@ describe('ObjectPage', () => {
712712
};
713713
cy.mount(<TestComp height="2000px" mode={ObjectPageMode.Default} />);
714714
cy.findByText('Update Heights').click();
715-
cy.findByText('{"offset":1080,"scroll":2270}').should('exist');
715+
cy.findByText('{"offset":1080,"scroll":2290}').should('exist');
716716

717717
cy.findByTestId('op').scrollTo('bottom');
718718
cy.findByText('Update Heights').click({ force: true });
719-
cy.findByText('{"offset":1080,"scroll":2270}').should('exist');
719+
cy.findByText('{"offset":1080,"scroll":2290}').should('exist');
720720

721721
cy.mount(<TestComp height="2000px" withFooter mode={ObjectPageMode.Default} />);
722722
cy.findByText('Update Heights').click();
723-
cy.findByText('{"offset":1080,"scroll":2320}').should('exist');
723+
cy.findByText('{"offset":1080,"scroll":2330}').should('exist');
724724

725725
cy.findByTestId('op').scrollTo('bottom');
726726
cy.findByText('Update Heights').click({ force: true });
727-
cy.findByText('{"offset":1080,"scroll":2320}').should('exist');
727+
cy.findByText('{"offset":1080,"scroll":2330}').should('exist');
728728

729729
cy.mount(<TestComp height="400px" mode={ObjectPageMode.Default} />);
730730
cy.findByText('Update Heights').click();
@@ -809,19 +809,19 @@ describe('ObjectPage', () => {
809809
};
810810
cy.mount(<TestComp height="2000px" mode={ObjectPageMode.IconTabBar} />);
811811
cy.findByText('Update Heights').click();
812-
cy.findByText('{"offset":1080,"scroll":2270}').should('exist');
812+
cy.findByText('{"offset":1080,"scroll":2290}').should('exist');
813813

814814
cy.findByTestId('op').scrollTo('bottom');
815815
cy.findByText('Update Heights').click({ force: true });
816-
cy.findByText('{"offset":1080,"scroll":2270}').should('exist');
816+
cy.findByText('{"offset":1080,"scroll":2290}').should('exist');
817817

818818
cy.mount(<TestComp height="2000px" withFooter mode={ObjectPageMode.IconTabBar} />);
819819
cy.findByText('Update Heights').click();
820-
cy.findByText('{"offset":1080,"scroll":2330}').should('exist');
820+
cy.findByText('{"offset":1080,"scroll":2350}').should('exist');
821821

822822
cy.findByTestId('op').scrollTo('bottom');
823823
cy.findByText('Update Heights').click({ force: true });
824-
cy.findByText('{"offset":1080,"scroll":2330}').should('exist');
824+
cy.findByText('{"offset":1080,"scroll":2350}').should('exist');
825825

826826
cy.mount(<TestComp height="400px" mode={ObjectPageMode.IconTabBar} />);
827827
cy.findByText('Update Heights').click();

packages/main/src/components/ThemeProvider/ThemeProvider.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ describe('ThemeProvider', () => {
2323

2424
it('injects css via JS', () => {
2525
cy.mount(<span>Hello World</span>);
26-
cy.get('html').should('have.css', '--_ui5wcr_ObjectPage_SectionTitleLineHeight', '4rem');
26+
cy.get('html').should('have.css', '--_ui5wcr_Scrollbar_Border', 'none');
2727
});
2828

2929
it('does not inject CSS when staticCssInjected is true', () => {
3030
cy.mount(<span>Hello World</span>, { themeProviderProps: { staticCssInjected: true } });
31-
cy.get('html').should('not.have.css', '--_ui5wcr_ObjectPage_SectionTitleLineHeight');
31+
cy.get('html').should('not.have.css', '--_ui5wcr_Scrollbar_Border');
3232
});
3333
});

0 commit comments

Comments
 (0)