Skip to content

Commit a0de309

Browse files
committed
fixed errors
1 parent 2c66cc3 commit a0de309

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

packages/react-integration/cypress/integration/drawer.spec.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,16 @@ describe('Drawer Demo Test', () => {
4444
$drawerPanel.should('have.class', 'pf-m-width-50-on-lg');
4545
$drawerPanel.should('have.class', 'pf-m-width-33-on-xl');
4646
$drawerPanel.should('have.class', 'pf-m-width-25-on-2xl');
47-
$drawerPanel.should('have.css', 'flex-basis', 'max(0% + 24px, min(0% + 300px, 100% + 0px))');
47+
$drawerPanel.should('have.css', 'flex-basis', 'max(24px, min(300px, 100%))');
4848
// Medium viewport
4949
cy.viewport(800, 660);
50-
cy.get('#basic-drawer .pf-v6-c-drawer__panel').should(
51-
'have.css',
52-
'flex-basis',
53-
'max(0% + 24px, min(100% + 0px, 100% + 0px))'
54-
);
50+
cy.get('#basic-drawer .pf-v6-c-drawer__panel').should('have.css', 'flex-basis', 'max(24px, min(100%, 100%))');
5551
// Xl viewport
5652
cy.viewport(1200, 660);
57-
cy.get('#basic-drawer .pf-v6-c-drawer__panel').should(
58-
'have.css',
59-
'flex-basis',
60-
'max(0% + 24px, min(0% + 300px, 100% + 0px))'
61-
);
53+
cy.get('#basic-drawer .pf-v6-c-drawer__panel').should('have.css', 'flex-basis', 'max(24px, min(300px, 100%))');
6254
// 2Xl viewport
6355
cy.viewport(1450, 660);
64-
cy.get('#basic-drawer .pf-v6-c-drawer__panel').should(
65-
'have.css',
66-
'flex-basis',
67-
'max(0% + 24px, min(0% + 300px, 100% + 0px))'
68-
);
56+
cy.get('#basic-drawer .pf-v6-c-drawer__panel').should('have.css', 'flex-basis', 'max(24px, min(300px, 100%))');
6957
});
7058

7159
it('Verify that focus gets sent to drawer', () => {

packages/react-integration/cypress/integration/drawerresize.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('Drawer Resize Demo Test', () => {
44
});
55

66
it('Verify resizable drawer', () => {
7-
cy.get('.pf-v6-c-drawer__panel').should('have.css', 'flex-basis', 'max(0% + 24px, min(0% + 200px, 100% + 0px))');
7+
cy.get('.pf-v6-c-drawer__panel').should('have.css', 'flex-basis', 'max(24px, min(200px, 100%))');
88
cy.get('.pf-v6-c-drawer__panel').should('have.class', 'pf-m-resizable');
99
cy.get('.pf-v6-c-drawer').should('not.have.class', 'pf-m-expanded');
1010
cy.get('#toggleButton').click();

packages/react-integration/cypress/integration/form.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('Form Demo Test', () => {
8989

9090
it('Verify pressing spacebar selects the checkbox component', () => {
9191
const $checkbox = cy.get('#subscribe');
92-
$checkbox.should('not.be.checked');
92+
$checkbox.should('not.be.checked').focus();
9393
$checkbox.type(' ');
9494
$checkbox.should('be.checked');
9595
$checkbox.type(' '); // should be unchecked but isn't

0 commit comments

Comments
 (0)