-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: do not magically set user preferences for auto-scroll #26102
Merged
Merged
Changes from 16 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e172e39
fix: Do not magically mutate the user preferences when auto scroll be…
AtofStryker 9f7f205
[run ci]
AtofStryker 0a38681
chore: add CHANGELOG entry
AtofStryker 0ded1eb
Merge branch 'develop' of github.com:cypress-io/cypress into spike_sc…
AtofStryker 14a0957
Update cli/CHANGELOG.md
AtofStryker 41c9154
Merge branch 'develop' of github.com:cypress-io/cypress into spike_sc…
AtofStryker 28c6759
chore: move bugfix to 12.8.1 in changelog
AtofStryker f821276
chore: remove issue 25084 from fix
AtofStryker aebfa73
chore: rename autoScrollingUnderUserPreference to autoScrollingUserPref
AtofStryker 371050e
empty
AtofStryker 74e3230
Update packages/reporter/src/lib/events.ts
AtofStryker 19c738b
test: add cy-in-cy regression test to make sure auto scroll is not im…
AtofStryker d925a92
Merge branch 'spike_scroll' of github.com:cypress-io/cypress into spi…
AtofStryker b3ac61a
chore: update changelog entry to include #26113
AtofStryker 88da3ed
Merge branch 'develop' into spike_scroll
AtofStryker cc29faf
Update system-tests/projects/cypress-in-cypress/cypress/e2e/dom-conte…
AtofStryker 9d65937
Merge branch 'develop' into spike_scroll
AtofStryker e7c19d9
chore: update the specs list app test since we have added a new cy-in…
AtofStryker fd45631
Merge branch 'develop' of github.com:cypress-io/cypress into spike_sc…
AtofStryker 32c1b5d
Merge branch 'spike_scroll' of github.com:cypress-io/cypress into spi…
AtofStryker cfea4b8
chore: update the specChange-subscription tests
AtofStryker 07099fd
Merge branch 'develop' into spike_scroll
AtofStryker 9843a91
Update CHANGELOG.md
emilyrohrbough a1eb8da
chore: update missed assertion update in spec change subscription
AtofStryker 9ad1f6f
Merge branch 'spike_scroll' of github.com:cypress-io/cypress into spi…
AtofStryker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
system-tests/projects/cypress-in-cypress/cypress/e2e/dom-content-scrollable-commands.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
describe('Dom Content - Scrollable Assertions', () => { | ||
beforeEach(() => { | ||
cy.visit('cypress/e2e/dom-content.html') | ||
}) | ||
|
||
// create enough commands in the command log to enable scrolling | ||
;[...Array(25).keys()].forEach((idx) => { | ||
it(`checks for list items to exist - iteration #${idx + 1}`, () => { | ||
cy.get('li').contains('Item 1').should('exist') | ||
cy.get('li').contains('Item 2').should('exist') | ||
cy.get('li').contains('Item 3').should('exist') | ||
}) | ||
}) | ||
|
||
// allow the cy-in-cy test to perform user interaction during this long test | ||
it('waits for an arbitrary amount of time', () => { | ||
cy.wait((50000)) | ||
}) | ||
}) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder if it's work a comment linking to https://github.com/cypress-io/cypress/blob/develop/packages/reporter/src/lib/scroller.ts#L37 to explain why this works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think so. My only concern is if the file changed and the reference became out of data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah and thinking about it, if you are doing something that breaks this test, you've almost certainly been in that exact function, probably no need for comment.