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

chore: move questions-remain into cypress repo #29542

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

jennifer-shehane
Copy link
Member

Additional details

This moves the functionality of the https://github.com/cypress-io/questions-remain repo into the Cypress repo. It is only used for this repo within our company.

The repo is a single file, with a single test file. I think it's better managed within the main repo where all deps can be kept up to date together and no release motions are required outside of the repo. Additionally, outside users will not have an expectation to maintain this code for outside use.

I intend to archive the https://github.com/cypress-io/questions-remain repo once this is merged.

Steps to test

I moved a unit test over from the other repo. It was already a bit out of date tbh.

How has the user experience changed?

N/A - should be no change.

PR Tasks

@@ -0,0 +1,39 @@
const la = require('lazy-ass')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,46 @@
/* global sinon */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

it('is a function', () => {
if (typeof questionsRemain !== 'function') throw new Error('questionsRemain is not a function')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the is dep. 🤷🏻‍♀️

}

// console.log(questionsRemain(propertiesToQuestions)(options))
return questionsRemain(propertiesToQuestions)(options).then(snapshot)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are promises, so chain .then with snapshot

@@ -197,7 +196,7 @@
"semver": "7.5.3",
"shelljs": "0.8.5",
"sinon": "7.3.2",
"snap-shot-it": "7.9.3",
"snap-shot-it": "7.9.10",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was having issues with snapshot and though this would fix it. Seems like a good change even though it's not needed for this update.

@jennifer-shehane jennifer-shehane self-assigned this May 20, 2024
Copy link

cypress bot commented May 21, 2024

10 flaky tests on run #55504 ↗︎

0 29255 1328 0 Flakiness 10

Details:

SLASH!
Project: cypress Commit: eca4acd73c
Status: Passed Duration: 18:48 💡
Started: May 21, 2024 1:56 PM Ended: May 21, 2024 2:15 PM
Flakiness  e2e/origin/basic_login.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
basic login > visit primary first > logs in with idp redirect
    </td>
  </tr></table>
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
... > stops waiting when an fetch request is canceled Test Replay
Flakiness  commands/querying/querying.cy.js • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
... > throws when alias property isnt a digit or `all` Test Replay
Flakiness  commands/waiting.cy.js • 2 flaky tests • 5x-driver-chrome:beta

View Output

Test Artifacts
... > errors > throws when route is never resolved Test Replay
... > errors > throws when waiting for 2nd response to route Test Replay
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > stops waiting when an fetch request is canceled Test Replay

The first 5 flaky specs are shown, see all 7 specs in Cypress Cloud.

Review all test suite changes for PR #29542 ↗︎

@jennifer-shehane jennifer-shehane merged commit ea83415 into develop Jun 3, 2024
80 of 82 checks passed
@jennifer-shehane jennifer-shehane deleted the move-questions-remain branch June 3, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants