Skip to content

Commit

Permalink
Merge pull request #2521 from botpress/ya-test2
Browse files Browse the repository at this point in the history
fix(tests): small ajustment to tests
  • Loading branch information
allardy committed Oct 21, 2019
2 parents 6d5915b + db76e1e commit 602996b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest-puppeteer.config.js
Expand Up @@ -10,7 +10,7 @@ module.exports = {
headless: yn(process.env.HEADLESS),
// +20 so it's a bit bigger than the viewport so nothing is cut
args: [`--window-size=${windowSize.width + 20},${windowSize.height + 20}`],
slowMo: 40 // Set this value to slow down tests globally
slowMo: 20 // Set this value to slow down tests globally
// devtools: true // Access the dev tools on the headless chrome
},
bpConfig: {
Expand Down
2 changes: 1 addition & 1 deletion src/bp/ui-admin/src/App/UserDropdownMenu.tsx
Expand Up @@ -54,7 +54,7 @@ const UserDropdownMenu: FC<Props> = props => {

return (
<div>
<Popover minimal position={Position.BOTTOM} interactionKind={PopoverInteractionKind.HOVER}>
<Popover minimal position={Position.BOTTOM} interactionKind={PopoverInteractionKind.CLICK}>
<Button id="btn-menu" icon={icon} rightIcon={<Icon icon="caret-down" color={Colors.WHITE} />} minimal={true} />
<Menu>
<MenuDivider title={`Signed in as ${fullName || email}`} />
Expand Down
1 change: 1 addition & 0 deletions src/e2e/admin/ui.test.ts
Expand Up @@ -23,6 +23,7 @@ describe('Admin - UI', () => {
await closeToaster()
await clickOn('#btn-menu')
await expectMatch('Signed in as Bob Lalancette')
await clickOn('#btn-menu')
})

it('Load debugging page', async () => {
Expand Down
1 change: 1 addition & 0 deletions src/e2e/utils.ts
Expand Up @@ -95,6 +95,7 @@ export const closeToaster = async () => {
await page.waitForFunction(() => {
return document.querySelector('.bp3-overlay').childElementCount === 0
})
await page.waitFor(500)
}

const shouldLogRequest = (url: string) => {
Expand Down

0 comments on commit 602996b

Please sign in to comment.