Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Move Chart e2e test to index.spec
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Marios Balamatsias <[email protected]>
  • Loading branch information
mbalamat committed Aug 23, 2020
1 parent fd666db commit 903d945
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 74 deletions.
26 changes: 26 additions & 0 deletions test/e2e/ui/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,3 +603,29 @@ ava.serial('workflows: Should be able to create a new workflow', async (test) =>

test.pass()
})

// Charting
// =============================================================================
ava.serial('Should be able to navigate to chart lens of pull requests', async (test) => {
const {
page
} = context

// eslint-disable-next-line max-statements-per-line
page.on('console', (msg) => { console.log('PAGE LOG:', msg.text()) })
const pullRequest = require('./fixtures/pull-requests.json')

await context.sdk.card.create({
type: '[email protected]',
data: pullRequest
})

await macros.navigateToHomeChannelItem(page, [
'[data-test="home-channel__group-toggle--org-balena"]',
'[data-test="home-channel__item--view-all-pull-requests"]'
])

await macros.waitForThenClickSelector(page, '[data-test="lens-selector--lens-chart"]')
await page.waitForSelector('.plotly')
test.pass()
})
74 changes: 0 additions & 74 deletions test/e2e/ui/pull-requests.spec.js

This file was deleted.

0 comments on commit 903d945

Please sign in to comment.