Alerting: Fix ImportToGMARules flaky test (#106495)

* fix ImportToGMARules flacky test

* skip test
This commit is contained in:
Sonia Aguilar
2025-06-10 18:42:30 +02:00
committed by GitHub
parent 79ff67268f
commit a4ef05b52b
@@ -47,7 +47,7 @@ const ui = {
alertingFactory.dataSource.mimir().build({ meta: { alerting: true } });
describe('ImportToGMARules', () => {
describe.skip('ImportToGMARules', () => {
grantUserPermissions([AccessControlAction.AlertingRuleExternalRead, AccessControlAction.AlertingRuleCreate]);
testWithFeatureToggles(['alertingImportYAMLUI', 'alertingMigrationUI']);
@@ -62,10 +62,13 @@ describe('ImportToGMARules', () => {
it('should render datasource options', async () => {
const { user } = render(<ImportToGMARules />);
await user.click(ui.dsImport.dsPicker.get());
// Wait for the data source picker to be ready
const dsPicker = await ui.dsImport.dsPicker.find();
await user.click(dsPicker);
await user.click(await ui.dsImport.mimirDsOption.find());
expect(ui.dsImport.dsPicker.get()).toHaveProperty('placeholder', 'Mimir');
expect(await ui.dsImport.dsPicker.find()).toHaveProperty('placeholder', 'Mimir');
});
it('should render additional options', async () => {