Skip to content

Commit

Permalink
Update Cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Jul 8, 2024
1 parent 8c3b160 commit 26a4035
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ describe('Horizontal FilterBar', () => {
applyNativeFilterValueWithIndex(8, testItems.filterDefaultValue);
cy.get(nativeFilters.applyFilter).click({ force: true });
cy.wait('@chart');
cy.get('.ant-scroll-number.ant-badge-count').should(
cy.get('.antd5-scroll-number.antd5-badge-count').should(
'have.attr',
'title',
'1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const profile = {
favoritesSpace: '#rc-tabs-0-panel-2',
};
export const securityAccess = {
rolesBubble: '.ant-badge-count',
rolesBubble: '.antd5-badge-count',
};
export const homePage = {
homeSection: {
Expand Down
6 changes: 2 additions & 4 deletions superset-frontend/src/components/Badge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ import { styled } from '@superset-ui/core';
import { Badge as AntdBadge } from 'antd-v5';
import { BadgeProps as AntdBadgeProps } from 'antd-v5/lib/badge';

export interface BadgeProps extends AntdBadgeProps {
textColor?: string;
}
export type { AntdBadgeProps as BadgeProps };

const Badge = styled((props: BadgeProps) => <AntdBadge {...props} />)`
const Badge = styled((props: AntdBadgeProps) => <AntdBadge {...props} />)`
${({ theme, color, count }) => `
& > sup,
& > sup.antd5-badge-count {
Expand Down

0 comments on commit 26a4035

Please sign in to comment.