test: 💍 update json credential flaky tests (#3267)

* test: 💍 update json credential flaky tests

* test: 💍 add commonSelector for code mirror editor
This commit is contained in:
Cameron Perera authored and GitHub committed 2026-05-13 11:26:41 -05:00
1 parent 1fd638618b
commit 6b29a875f3
2 files changed
+4 -2

No files matched your search

@@ -10,7 +10,7 @@ import {
find,
click,
fillIn,
waitUntil,
waitFor,
} from '@ember/test-helpers';
import { setupApplicationTest } from 'admin/tests/helpers';
import { setupSqlite } from 'api/test-support/helpers/sqlite';
@@ -982,7 +982,8 @@ module(
await click(selectors.REPLACE_SECRET_BTN);
assert.dom(selectors.REPLACE_SECRET_BTN).doesNotExist();
await waitUntil(() => assert.dom('.CodeMirror').isVisible());
await waitFor(commonSelectors.CODE_EDITOR_CM);
assert.dom(commonSelectors.CODE_EDITOR_CM).isVisible();
});
},
);
+1
View File
@@ -95,6 +95,7 @@ export const TABLE_SORT_BTN_ARROW_DOWN = (column) =>
export const CODE_EDITOR_CONTENT =
'[data-test-code-editor-field-editor] textarea';
export const CODE_EDITOR_CM = '[data-test-code-editor] .CodeMirror';
// Toolbar refresher selectors
export const TOOLBAR_REFRESHER = '.toolbar-refresher';