mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
fix(journey): the Studio export dialog in the new look, and the Atlas country card draws its flag
The export dialog was the last popup on the old card: it is now the shared dialog frame with its options as rows, and it takes Escape for itself so the key no longer reaches Studio behind it. Its stylesheet goes. The Atlas country card printed the flag emoji, which Windows draws as the two letters of the country code; it uses the shared CountryFlag now.
This commit is contained in:
@@ -42,8 +42,8 @@ afterEach(() => { vi.useRealTimers() })
|
||||
describe('the choices', () => {
|
||||
it('starts on single pages, which is what a printer takes', () => {
|
||||
open()
|
||||
expect(screen.getByText('journey.studio.exportPages').closest('button')!.className)
|
||||
.toContain('is-on')
|
||||
expect(screen.getByText('journey.studio.exportPages').closest('button')!.getAttribute('aria-pressed'))
|
||||
.toBe('true')
|
||||
})
|
||||
|
||||
it('starts with crop marks on', () => {
|
||||
@@ -55,10 +55,10 @@ describe('the choices', () => {
|
||||
it('switches to spreads when asked', () => {
|
||||
open()
|
||||
fireEvent.click(screen.getByText('journey.studio.exportSpreads'))
|
||||
expect(screen.getByText('journey.studio.exportSpreads').closest('button')!.className)
|
||||
.toContain('is-on')
|
||||
expect(screen.getByText('journey.studio.exportPages').closest('button')!.className)
|
||||
.not.toContain('is-on')
|
||||
expect(screen.getByText('journey.studio.exportSpreads').closest('button')!.getAttribute('aria-pressed'))
|
||||
.toBe('true')
|
||||
expect(screen.getByText('journey.studio.exportPages').closest('button')!.getAttribute('aria-pressed'))
|
||||
.toBe('false')
|
||||
})
|
||||
|
||||
it('turns the marks off again', () => {
|
||||
|
||||
Reference in New Issue
Block a user