Skip to content

Commit

Permalink
STSMACOM-875 fix remaining flaky test for DeleteModal yaygit add -A!
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Nov 25, 2024
1 parent 7252b02 commit c7d5600
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '../../../../../../../tests/helpers';
import fetchUsageStatistics from '../../../tests/helpers/fetchUsageStatistics';

describe('DeleteModal', () => {
describe.only('DeleteModal', () => {

Check failure on line 16 in lib/CustomFields/components/CustomFieldsForm/components/DeleteModal/tests/DeleteModal-test.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

describe.only not permitted
setupApplication();

const deleteModal = new DeleteModalInteractor();
Expand Down Expand Up @@ -49,15 +49,20 @@ describe('DeleteModal', () => {
});

describe('when fields stats have loaded', () => {
let a11yResults = null;

beforeEach(async () => {
await deleteModal.whenLoaded();
a11yResults = await axe.run();
});

it('should not have any a11y issues', () => {
expect(a11yResults.violations).to.be.empty;
describe('when checking for a11y issues', () => {
let a11yResults = null;

beforeEach(async () => {
a11yResults = await axe.run();
});

it('should not have any a11y issues', () => {
expect(a11yResults.violations).to.be.empty;
});
});

it('should not show loading icon', () => {
Expand Down

0 comments on commit c7d5600

Please sign in to comment.