Select Git revision
add.test.js
add.test.js 818 B
describe('add two plugins to <WorkspaceControlPanelButtons>', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/add.html');
await expect(page).toMatchElement('.mirador-viewer');
await page.waitForTimeout(1000);
});
it('all add plugins will be added to <WorkspaceControlPanelButtons>', async () => {
await expect(page).toMatchElement('#add-plugin-component-a');
await expect(page).toMatchElement('#add-plugin-component-b');
});
it('wrapped and added plugins will be added to <WindowTopBarPluginMenu>', async () => {
await expect(page).toClick('#wrapped-plugin-with-adds button');
await expect(page).toMatchElement('#add-plugin-component-c');
await expect(page).toMatchElement('#wrapped-plugin-with-adds');
});
});