Skip to content

Commit

Permalink
test: Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Apr 11, 2024
1 parent ef97006 commit d81e692
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/storyMap/components/StoryMapForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ beforeEach(() => {
off: jest.fn(),
getCanvas: jest.fn(),
addControl: jest.fn(),
removeControl: jest.fn(),
getCenter: jest.fn(),
getZoom: jest.fn(),
addSource: jest.fn(),
Expand Down Expand Up @@ -380,6 +381,7 @@ test('StoryMapForm: Sidebar navigation', async () => {
off: jest.fn(),
getCanvas: jest.fn(),
addControl: jest.fn(),
removeControl: jest.fn(),
getCenter: () => ({ lng: -99.91122777353772, lat: 21.64458705609789 }),
getZoom: jest.fn(),
flyTo: jest.fn(),
Expand Down Expand Up @@ -634,6 +636,7 @@ test('StoryMapForm: Change chapter location', async () => {
off: jest.fn(),
getCanvas: jest.fn(),
addControl: jest.fn(),
removeControl: jest.fn(),
addSource: jest.fn(),
getSource: jest.fn(),
addLayer: jest.fn(),
Expand Down Expand Up @@ -706,6 +709,12 @@ test('StoryMapForm: Move chapter down with menu', async () => {
name: 'Chapters sidebar',
});

await waitFor(() =>
expect(within(chaptersSection).getByRole('button', {

Check failure on line 713 in src/storyMap/components/StoryMapForm.test.js

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎······`
name: 'Chapter 1',

Check failure on line 714 in src/storyMap/components/StoryMapForm.test.js

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
})).toBeInTheDocument()

Check failure on line 715 in src/storyMap/components/StoryMapForm.test.js

View workflow job for this annotation

GitHub Actions / lint

Replace `})` with `··})⏎····`
)

Check failure on line 716 in src/storyMap/components/StoryMapForm.test.js

View workflow job for this annotation

GitHub Actions / lint

Insert `;`

const chapter1 = within(chaptersSection).getByRole('button', {
name: 'Chapter 1',
});
Expand Down

0 comments on commit d81e692

Please sign in to comment.