future-city-90468
06/13/2022, 7:04 AMfresh-doctor-14925
06/13/2022, 7:06 AMconsole.log
🙂average-fountain-87572
06/13/2022, 8:58 AMgray-kilobyte-89541
06/13/2022, 10:33 AMcy.contains
can be its own top-level command that finds the element on the page, no need to use cy.get with it.gray-kilobyte-89541
06/13/2022, 10:34 AMaverage-fountain-87572
06/13/2022, 10:36 AMfresh-doctor-14925
06/13/2022, 10:51 AMget()
like should()
would?
I have a getByTestId()
helper function to save us writing out [data-test-id=…]
for every time we want to get an element. Just want to make sure I’ve not been giving bad advice the past couple of yearsflaky-airport-12178
06/13/2022, 4:02 PMgray-kilobyte-89541
06/13/2022, 6:54 PMpurple-receptionist-78904
06/13/2022, 8:19 PMnpx cypress open
the cypress window is visible for a few seconds (to choose between e2e and component testing) and later disappears 😦
It is working fine when running in headless mode (npx cypress run
) and on CI/CD.
What can I do with this?
Thanks!bitter-vase-17481
06/13/2022, 8:42 PMpurple-receptionist-78904
06/13/2022, 8:55 PMancient-park-71356
06/13/2022, 9:37 PMeager-refrigerator-15324
06/13/2022, 10:05 PMError: Cannot find module 'C:\Users\User'
Require stack:
- internal/preload
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1280:12)
at loadPreloadModules (node:internal/bootstrap/pre_execution:476:5)
at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:77:3)
at node:internal/main/run_main_module:7:1 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
}
I feel like the problem is that there is a space in the file path (ex: C:\Users\User A\
). Has anyone else faced this issue and found a solution short of creating a new user?incalculable-fall-95048
06/13/2022, 10:58 PMnpx cypress open
the created files are .js and not .ts?incalculable-fall-95048
06/13/2022, 10:59 PMincalculable-fall-95048
06/13/2022, 11:04 PMworried-parrot-50579
06/14/2022, 6:35 AMswift-angle-95455
06/14/2022, 7:09 AMcypress-realworld-app
uses XState? Is XState a widely-used library? Does it act like Redux?
I was digging into the code trying to understand how to test, but I ran into not knowing how the signup form (frontend) works because there are authService
, sendAuth
, useActor
, and I was expecting something like axios or fetch doing a POST request to the backend.swift-angle-95455
06/14/2022, 7:20 AMearly-manchester-55187
06/14/2022, 7:57 AMfresh-doctor-14925
06/14/2022, 8:03 AMcy.session()
to cache your users’ sessions, saving you from having sign in/sign out steps https://docs.cypress.io/api/commands/session
If possible , you could consider doing some of the actions via API. Doing it all via UI sounds quite laboriousbrave-processor-66066
06/14/2022, 8:23 AMgentle-accountant-4760
06/14/2022, 8:44 AMts
import { defineConfig } from 'cypress';
export default defineConfig({
chromeWebSecurity: false,
reporter: 'spec',
reporterOptions: {
toConsole: true,
},
defaultCommandTimeout: 60000,
experimentalInteractiveRunEvents: true,
userAgent: 'KP-CYPRESS-TEST',
});
but whenever I run the script, Ic annot seem to find any of my test anymoregentle-accountant-4760
06/14/2022, 8:50 AMearly-manchester-55187
06/14/2022, 9:03 AMgentle-accountant-4760
06/14/2022, 9:05 AMgentle-accountant-4760
06/14/2022, 9:05 AMfresh-doctor-14925
06/14/2022, 9:07 AMgentle-accountant-4760
06/14/2022, 9:07 AM