Skip to content

Browsers other than electron don't close #152

@fregante

Description

@fregante

I noticed when using tape-run that Firefox closed but Chrome stayed open (even though the tests completed anyway)

However this doesn't close the tab and window either:

echo "console.log('Hey from ' + location); window.close()" | browser-run --browser firefox

...nor any other browser I tested: chrome and safari.

The interesting part is that this closed the tab once, but on a second call the tab and window stayed open:

echo "var run = require('browser-run');
  var browser = run({browser: 'chrome'});
  browser.pipe(process.stdout);
  browser.end('console.log(location); window.close()');" | node

I'm on macOS 10.15.2, Node v12.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions