Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurnewase committed Sep 24, 2022
1 parent a7ae4bb commit 8fa7301
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ test('Empty "Certified by" should clear "Certification details"', async () => {
test('should show all roles', async () => {
spyIsFeatureEnabled.mockReturnValue(true);

let props = createProps();
const props = createProps();
const propsWithDashboardIndo = { ...props, dashboardInfo };

const open = () => waitFor(() => userEvent.click(getSelect()));
Expand All @@ -384,8 +384,8 @@ test('should show all roles', async () => {

expect(screen.getAllByRole('combobox')).toHaveLength(2);
expect(
screen.getAllByRole('combobox', { name: SupersetCore.t('Roles') }),
).toHaveLength(1);
screen.getByRole('combobox', { name: SupersetCore.t('Roles') }),
).toBeInTheDocument();

await open();

Expand All @@ -398,7 +398,7 @@ test('should show all roles', async () => {
test('should show active owners with dashboard rbac', async () => {
spyIsFeatureEnabled.mockReturnValue(true);

let props = createProps();
const props = createProps();
const propsWithDashboardIndo = { ...props, dashboardInfo };

const open = () => waitFor(() => userEvent.click(getSelect()));
Expand All @@ -417,8 +417,8 @@ test('should show active owners with dashboard rbac', async () => {

expect(screen.getAllByRole('combobox')).toHaveLength(2);
expect(
screen.getAllByRole('combobox', { name: SupersetCore.t('Owners') }),
).toHaveLength(1);
screen.getByRole('combobox', { name: SupersetCore.t('Owners') }),
).toBeInTheDocument();

await open();

Expand All @@ -431,7 +431,7 @@ test('should show active owners with dashboard rbac', async () => {
test('should show active owners without dashboard rbac', async () => {
spyIsFeatureEnabled.mockReturnValue(false);

let props = createProps();
const props = createProps();
const propsWithDashboardIndo = { ...props, dashboardInfo };

const open = () => waitFor(() => userEvent.click(getSelect()));
Expand All @@ -448,10 +448,10 @@ test('should show active owners without dashboard rbac', async () => {
useRedux: true,
});

expect(screen.getAllByRole('combobox')).toHaveLength(1);
expect(screen.getByRole('combobox')).toBeInTheDocument();
expect(
screen.getAllByRole('combobox', { name: SupersetCore.t('Owners') }),
).toHaveLength(1);
screen.getByRole('combobox', { name: SupersetCore.t('Owners') }),
).toBeInTheDocument();

await open();

Expand Down

0 comments on commit 8fa7301

Please sign in to comment.