Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Feb 11, 2021
1 parent b0ae30a commit 2c097f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __tests__/integration/mirador/annotations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Annotations in Mirador', () => {
.find(w => w.manifestId === 'https://iiif.harvardartmuseums.org/manifests/object/299843').id;
});

await expect(page).toClick(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Show sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Annotations"]`);

await expect(page).toMatchElement(`#${windowId} h3`, { text: 'Annotations' });
Expand Down
4 changes: 2 additions & 2 deletions __tests__/integration/mirador/sequence_switching.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ describe('Window Sidebar Sequence Dropdown', () => {
.find(window => window.manifestId === 'http://localhost:4488/__tests__/fixtures/version-2/multipleSequences.json')
.id;

await expect(page).toMatchElement(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toMatchElement(`#${windowId} button[aria-label="Show sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Show sidebar"]`);

await expect(page).toMatchElement(`#${windowId} button[aria-label="Index"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Index"]`);
Expand Down
8 changes: 4 additions & 4 deletions __tests__/integration/mirador/window_sidebar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ describe('Window Sidebars', () => {
.find(window => window.manifestId === 'http://localhost:4488/__tests__/fixtures/version-2/001.json')
.id;

await expect(page).toMatchElement(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toMatchElement(`#${windowId} button[aria-label="Show sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Show sidebar"]`);

await expect(page).toMatchElement(`#${windowId} button[aria-label="Information"]`);
});
Expand All @@ -42,8 +42,8 @@ describe('Window Sidebars', () => {
.find(window => window.manifestId === 'http://localhost:4488/__tests__/fixtures/version-2/001.json')
.id;

await expect(page).toMatchElement(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Toggle sidebar"]`);
await expect(page).toMatchElement(`#${windowId} button[aria-label="Show sidebar"]`);
await expect(page).toClick(`#${windowId} button[aria-label="Show sidebar"]`);

await expect(page).toMatchElement(`#${windowId} button[aria-label="Index"]`);
});
Expand Down

0 comments on commit 2c097f3

Please sign in to comment.