-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should help with random errors in the CI that the app fails to load.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { waitForReact } from 'testcafe-react-selectors'; | ||
import page from './page-model'; | ||
import { SERVER_NAME } from './helpers'; | ||
|
||
/** | ||
* This fixture should be run first to make sure the server is running and the app is loaded | ||
*/ | ||
|
||
fixture('App') | ||
.page(SERVER_NAME) | ||
.beforeEach(async () => { | ||
await waitForReact(); | ||
}); | ||
|
||
test('The app loads and shows all main components', async (t) => { | ||
await t.expect(page.assetSourceList.exists).ok('The asset source list should exist'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters