Skip to content

Commit

Permalink
altair-graphql#1645 | Added e2e test for new 'Hide Docs' touchbar but…
Browse files Browse the repository at this point in the history
…ton.
  • Loading branch information
joshwalters12 committed Apr 7, 2023
1 parent a20bd08 commit 2e4aeea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/altair-electron/e2e/app._spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ const helpers = {

return docViewer;
},
async hideDocs(window: Page) {
const hideDocs = await window.$(
`${SELECTORS.VISIBLE_WINDOW} button[track-id="hide_docs"]`
);
await hideDocs.click();
const docViewer = await window.$(
`${SELECTORS.VISIBLE_WINDOW} .app-doc-viewer`
);
expect(await docViewer.isVisible()).toEqual(false);

return docViewer;
},
async addHeader(window: Page, key: string, value: string) {
const showHeaderElement = await window.$(
'.side-menu-item[track-id="show_set_headers"]'
Expand Down

0 comments on commit 2e4aeea

Please sign in to comment.