Skip to content

Commit 8f12a6a

Browse files
Merge branch 'develop' into issue-3633-5132-add-chrome-flags
2 parents 12a4f2d + bbd452a commit 8f12a6a

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

packages/driver/test/cypress/integration/commands/actions/click_spec.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,10 @@ describe('src/cy/commands/actions/click', () => {
14871487

14881488
cy.get('input:first')
14891489
.then(($el) => {
1490-
$el[0].ownerDocument.addEventListener('scroll', () => {
1490+
// This represents an asynchronous re-render
1491+
// since we fire the 'scrolled' event during actionability
1492+
// if we use el.on('scroll'), headless electron is flaky
1493+
cy.on('scrolled', () => {
14911494
$el.remove()
14921495
})
14931496
})

packages/driver/test/cypress/integration/e2e/domSnapshots.spec.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ describe('rect highlight', () => {
2222
const getAndPin = (sel) => {
2323
cy.get(sel)
2424

25-
cy.wait(0)
26-
.then(() => {
25+
// arbitrary wait to allow clicking and pinning command
26+
// if reduced, test is flakey
27+
cy.wait(10)
28+
.should(() => {
2729
withMutableReporterState(() => {
2830

2931
const commandLogEl = getCommandLogWithText(sel)
@@ -33,6 +35,9 @@ const getAndPin = (sel) => {
3335
reactCommandInstance.props.appState.isRunning = false
3436

3537
$(commandLogEl).find('.command-wrapper').click()
38+
39+
// make sure command was pinned, otherwise throw a better error message
40+
expect(cy.$$('.command-pin:visible', top.document).length, 'command should be pinned').ok
3641
})
3742
})
3843
}

packages/server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"express-session": "1.16.1",
162162
"express-useragent": "1.0.12",
163163
"http-mitm-proxy": "0.7.0",
164-
"https-proxy-agent": "TooTallNate/node-https-proxy-agent#6c804a2c919b53d29030340da8b02fd8225fd258",
164+
"https-proxy-agent": "3.0.0",
165165
"istanbul": "0.4.5",
166166
"mocked-env": "1.2.4",
167167
"mockery": "2.1.0",

0 commit comments

Comments
 (0)