Skip to content

Commit 8b60d0d

Browse files
committed
namespace_delete - allow deeper title nesting
1 parent 588b00a commit 8b60d0d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/cards/namespace-card.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const NamespaceCard = ({ namespace, namespaceURL }: IProps) => {
8888
);
8989
};
9090

91+
// FIXME: pf-m-truncate / hub-m-truncated
9192
function getDescription(d: string, MAX_DESCRIPTION_LENGTH) {
9293
if (!d) {
9394
return '';

test/cypress/e2e/namespaces/namespace_delete.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ describe('Delete a namespace', () => {
5151
).as('namespaces');
5252
cy.menuGo('Collections > Namespaces');
5353
cy.wait('@namespaces');
54-
cy.contains('ansible').parent().contains('View collections').click();
54+
cy.contains('ansible')
55+
.parents('.card-wrapper')
56+
.contains('View collections')
57+
.click();
5558
cy.get('[data-cy=ns-kebab-toggle]').click();
5659
cy.contains('Delete namespace')
5760
.invoke('attr', 'aria-disabled')

0 commit comments

Comments
 (0)