Skip to content

Commit e796c05

Browse files
lint fix
1 parent c3a3177 commit e796c05

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/ControlPlane/ManagedResources.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ describe('ManagedResources - Edit Resource', () => {
332332

333333
// Verify patch was called
334334
cy.then(() => {
335-
expect(patchCalled).to.equal(true);
336-
expect(patchedItem).to.not.be.null;
335+
cy.wrap(patchCalled).should('equal', true);
336+
cy.wrap(patchedItem).should('not.be.null');
337337
});
338338
});
339-
});
339+
});

src/components/Yaml/YamlSidePanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ export function YamlSidePanel({ resource, filename, onApply, isEdit }: YamlSideP
142142
<p className={styles.diffConfirmMessage}>{t('yaml.diffConfirmMessage')}</p>
143143
</div>
144144
<FlexBox className={styles.reviewButtons}>
145-
<Button design="Transparent" onClick={handleGoBack} data-testid="yaml-cancel-confirmation-button">
145+
<Button design="Transparent" data-testid="yaml-cancel-confirmation-button" onClick={handleGoBack}>
146146
{t('yaml.diffNo')}
147147
</Button>
148-
<Button design="Emphasized" onClick={handleConfirmPatch} data-testid="yaml-confirm-button">
148+
<Button design="Emphasized" data-testid="yaml-confirm-button" onClick={handleConfirmPatch}>
149149
{t('yaml.diffYes', 'Yes')}
150150
</Button>
151151
</FlexBox>

src/components/YamlEditor/YamlEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const YamlEditor = (props: YamlEditorProps) => {
8585
<Toolbar design="Solid">
8686
<Title>{t('yaml.editorTitle')}</Title>
8787
<ToolbarSpacer />
88-
<Button design="Emphasized" onClick={handleApply} data-testid="yaml-apply-button">
88+
<Button design="Emphasized" data-testid="yaml-apply-button" onClick={handleApply}>
8989
{t('buttons.applyChanges', 'Apply changes')}
9090
</Button>
9191
</Toolbar>

0 commit comments

Comments
 (0)