Skip to content

Commit 7e9592f

Browse files
committed
test: add PARAGON_THEME_URLS as undefined to avoid async
1 parent d924a8b commit 7e9592f

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ ENABLE_GRADING_METHOD_IN_PROBLEMS=false
4343
# TODO: Missing support for ORA2
4444
LIBRARY_UNSUPPORTED_BLOCKS="conditional,step-builder,problem-builder,openassessment"
4545
# "other" is used to test the workflow for creating blocks that aren't supported by the built-in editors
46-
PARAGON_THEME_URLS={}
46+
PARAGON_THEME_URLS=

src/setupTest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ mergeConfig({
4949
STUDIO_BASE_URL: process.env.STUDIO_BASE_URL || null,
5050
LMS_BASE_URL: process.env.LMS_BASE_URL || null,
5151
LIBRARY_UNSUPPORTED_BLOCKS: (process.env.LIBRARY_UNSUPPORTED_BLOCKS || 'conditional,step-builder,problem-builder').split(','),
52+
PARAGON_THEME_URLS: process.env.PARAGON_THEME_URLS || null,
5253
}, 'CourseAuthoringConfig');
5354

5455
class ResizeObserver {

src/studio-home/tabs-section/courses-tab/courses-filters/__snapshots__/index.test.jsx.snap

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,19 @@ exports[`CoursesFilters snapshot 1`] = `
2626
search
2727
</span>
2828
</label>
29-
<input
30-
class="form-control"
31-
id="pgn-searchfield-input-1"
32-
name="searchfield-input"
33-
placeholder="Search"
34-
role="searchbox"
35-
type="text"
36-
value=""
37-
/>
29+
<div
30+
class="pgn__form-control-decorator-group"
31+
>
32+
<input
33+
class="form-control"
34+
id="pgn-searchfield-input-1"
35+
name="searchfield-input"
36+
placeholder="Search"
37+
role="searchbox"
38+
type="text"
39+
value=""
40+
/>
41+
</div>
3842
<button
3943
aria-label="submit search"
4044
class="btn-icon btn-icon-primary btn-icon-sm pgn__searchfield__iconbutton-submit"

0 commit comments

Comments
 (0)