Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: UNIFY-676 browsers should be configurable in setupNodeEvents #20367

Merged
merged 10 commits into from
Mar 1, 2022
14 changes: 14 additions & 0 deletions packages/launchpad/cypress/e2e/system-tests/config-spec.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
describe('config-spec', () => {
it('can filter browsers from config', () => {
cy.scaffoldProject('plugin-filter-browsers')
cy.findBrowsers()
cy.openProject('plugin-filter-browsers', ['--e2e'])
cy.withCtx(async (ctx) => {
expect(await ctx.browser.machineBrowsers()).to.have.length(12) // stubbed list of all browsers
})

cy.visitLaunchpad()
// Filtered down to the electron browser in the plugin
cy.get('[data-cy="open-browser-list"]').children().should('have.length', 1)
})
})