Skip to content

Commit

Permalink
deleted done button in view pipeline configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rsun19 committed May 30, 2024
1 parent d048fb5 commit 3a5201f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1212,5 +1212,5 @@ const viewPipelinelineDetails = (
viewPipelineServerModal.shouldHaveEndPoint(endpoint);
viewPipelineServerModal.shouldHaveBucketName(bucketName);

viewPipelineServerModal.findDoneButton().click();
viewPipelineServerModal.findCloseButton().click();
};
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ class ViewPipelineServerModal extends Modal {
super('View pipeline server');
}

findDoneButton() {
return this.find().findByTestId('view-pipeline-server-done-button');
}

shouldHaveAccessKey(value: string) {
this.find().findByTestId('access-key-field').should('have.text', value);
return this;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import {
Button,
DescriptionList,
DescriptionListDescription,
DescriptionListGroup,
Expand Down Expand Up @@ -36,22 +35,7 @@ const ViewPipelineServerModal: React.FC<ViewPipelineServerModalProps> = ({
const databaseSecret = dataEntryToRecord(result?.values?.data ?? []);

return (
<Modal
title="View pipeline server"
isOpen={isOpen}
onClose={onClose}
actions={[
<Button
key="done-button"
variant="link"
onClick={onClose}
data-testid="view-pipeline-server-done-button"
>
Done
</Button>,
]}
variant="small"
>
<Modal title="View pipeline server" isOpen={isOpen} onClose={onClose} variant="small">
{pipelineNamespaceCR && (
<DescriptionList termWidth="20ch" isHorizontal>
{!!pipelineNamespaceCR.spec.objectStorage.externalStorage?.s3CredentialsSecret
Expand Down

0 comments on commit 3a5201f

Please sign in to comment.