silly-journalist-41771
06/20/2022, 11:36 AMgray-kilobyte-89541
06/20/2022, 11:56 AMgray-kilobyte-89541
06/20/2022, 11:57 AMcreamy-noon-1182
06/20/2022, 2:02 PMfresh-doctor-14925
06/20/2022, 2:08 PMaverage-market-67864
06/20/2022, 2:57 PMflaky-ice-53082
06/20/2022, 5:39 PMaverage-market-67864
06/20/2022, 5:43 PMsilly-journalist-41771
06/20/2022, 10:37 PMsilly-journalist-41771
06/20/2022, 10:37 PMfancy-bird-35714
06/21/2022, 4:51 AMfancy-bird-35714
06/21/2022, 4:51 AMpowerful-orange-86819
06/21/2022, 7:35 AMcreamy-noon-1182
06/21/2022, 8:35 AM// cypress.config.ts
import sharedConfig from 'your-package/configs/cypress/cypress.config'
import { defineConfig } from 'cypress'
export default defineConfig({
...sharedConfig,
// any custom settings that are needed per project
// for example, we use happo for only some projects
component: {
...sharedConfig.component,
setupNodeEvents: (on, config) => {
sharedConfig.component.setupNodeEvents(on, config)
happoTask.register(on)
return config
}
}
})
gray-kilobyte-89541
06/21/2022, 11:03 AMsilly-journalist-41771
06/21/2022, 9:09 PMsilly-journalist-41771
06/21/2022, 9:09 PMsilly-journalist-41771
06/21/2022, 9:10 PMsilly-journalist-41771
06/21/2022, 11:30 PMgray-kilobyte-89541
06/22/2022, 12:08 AMcy.get
return jQuery object, so you can invoke its html()
method to get it, cy.get(....).invoke('html')
modern-librarian-14184
06/22/2022, 5:08 AMaverage-market-67864
06/22/2022, 8:15 AMaverage-market-67864
06/22/2022, 8:18 AMaverage-market-67864
06/22/2022, 8:23 AMfresh-doctor-14925
06/22/2022, 9:19 AMcy.task()
rather than just being able to use cy.request()
)
Given that I spend a lot of time debugging weird issues related to this tool-agnostic library, I don't think it's been much of a time-saver. So I'm tempted to remove the decoupled framework. Then I can play to Cypress' strengths. If a new tool comes along that is better, I can adopt that and play to its strengths
But ultimately it's your choice and you should go with what's best for you and your project. I don't think anyone is going to go out of their way to convince you one way or the other 🙂average-market-67864
06/22/2022, 9:26 AMgray-kilobyte-89541
06/22/2022, 10:30 AMhundreds-library-57018
06/22/2022, 3:52 PMlate-planet-4481
06/22/2022, 4:41 PMjs
describe('register page', () => {
it('behaves correctly', () => {
visitRegisterPage()
shouldSeePasswordResetLink()
submitEmptyForm()
shouldSeeValidationErrors()
submitFormWithExistingEmail()
shouldSeeErrorForInvalidEmail()
shouldSeeSignInLinkInError()
shouldSeePasswordResetLinkInError()
submitFormWithWrongConfirmEmail()
shouldDisplayErrorForEmailMismatch()
submitFormProperly()
modalShouldAppear()
dashboardValuesShouldBeCorrect()
})
})
late-planet-4481
06/22/2022, 4:43 PM