-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
31 deletions.
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,44 @@ | ||
import { fireEvent } from '@testing-library/react' | ||
|
||
import { createView, doBeforeEach, expectCanvasMatch, hts, setup } from './util' | ||
|
||
setup() | ||
|
||
beforeEach(() => { | ||
doBeforeEach() | ||
}) | ||
|
||
const delay = { timeout: 30000 } | ||
const opts = [{}, delay] | ||
|
||
test('regular', async () => { | ||
const { view, findByTestId, findByText, findAllByTestId } = await createView() | ||
|
||
await view.navToLocString('ctgA') | ||
fireEvent.click(await findByTestId(hts('volvox_test_vcf'), ...opts)) | ||
|
||
fireEvent.click(await findByTestId('track_menu_icon', ...opts)) | ||
fireEvent.click(await findByText('Display types', ...opts)) | ||
fireEvent.click(await findByText('Multi-variant display (regular)', ...opts)) | ||
await new Promise(res => setTimeout(res, 1000)) | ||
fireEvent.click(await findByText('Force load', ...opts)) | ||
|
||
expectCanvasMatch((await findAllByTestId(/prerendered_canvas/, ...opts))[0]!) | ||
}, 40000) | ||
|
||
test('rphased', async () => { | ||
const { view, findByTestId, findByText, findAllByTestId } = await createView() | ||
|
||
await view.navToLocString('ctgA') | ||
fireEvent.click(await findByTestId(hts('volvox_test_vcf'), ...opts)) | ||
|
||
fireEvent.click(await findByTestId('track_menu_icon', ...opts)) | ||
fireEvent.click(await findByText('Display types', ...opts)) | ||
fireEvent.click(await findByText('Multi-variant display (regular)', ...opts)) | ||
|
||
// Using the track menu twice not working currently, manually poke this setting | ||
view.tracks[0].displays[0].setPhasedMode('phased') | ||
|
||
fireEvent.click(await findByText('Force load', ...opts)) | ||
expectCanvasMatch((await findAllByTestId(/prerendered_canvas/, ...opts))[0]!) | ||
}, 40000) |
File renamed without changes
File renamed without changes
File renamed without changes