flaky-airport-12178
08/17/2022, 8:11 AMcurved-gold-20579
08/17/2022, 10:47 AMgray-kilobyte-89541
08/17/2022, 10:52 AMfaint-tiger-98881
08/17/2022, 11:44 AMbrief-toddler-73066
08/17/2022, 1:26 PMearly-computer-34425
08/17/2022, 1:38 PMmelodic-egg-83620
08/17/2022, 1:42 PMcypress-vite is a community plugin, but I'm wondering if someone can find an error in my config:
import { defineConfig } from 'cypress'
import vitePreprocessor from 'cypress-vite'
import path from 'path'
export default defineConfig({
chromeWebSecurity: false,
projectId: "arwce9",
requestTimeout: 10000,
responseTimeout: 60000,
viewportHeight: 1080,
viewportWidth: 1920,
e2e: {
baseUrl: 'http://localhost:8080',
setupNodeEvents (on) {
on('file:preprocessor', vitePreprocessor(path.resolve(__dirname, './vite.config.ts')))
},
specPattern: 'cypress/e2e/**/**.spec.js',
},
})melodic-egg-83620
08/17/2022, 1:44 PM.then i s used when you want to wait and then access elements/data specific to what you were waiting on.
I don't believe this will work, because you can't .get and then .get on the same cy chain.
cy.wait(...)
cy
.get(...)
.focus()
.select(...)
cy.wait(...)
cy
.get(...)
.focus()
.select(...)early-computer-34425
08/17/2022, 1:49 PMmelodic-egg-83620
08/17/2022, 1:50 PMearly-computer-34425
08/17/2022, 1:52 PMcy.select() failed because it could not find a single <option> with value, index, or text matching: Option 1gray-kilobyte-89541
08/17/2022, 2:11 PMcy.get gets the same intercept, it does not make a new onefull-ram-6858
08/17/2022, 2:21 PMacceptable-hamburger-48790
08/17/2022, 2:23 PMfull-ram-6858
08/17/2022, 2:23 PMfull-ram-6858
08/17/2022, 2:25 PMuser
08/17/2022, 2:29 PMfamous-lawyer-53235
08/17/2022, 3:26 PMripe-plumber-61789
08/17/2022, 3:37 PMripe-plumber-61789
08/17/2022, 3:38 PMripe-plumber-61789
08/17/2022, 3:40 PMripe-plumber-61789
08/17/2022, 3:43 PMhelpful-truck-53930
08/17/2022, 4:50 PMgreat-pilot-68403
08/17/2022, 5:45 PMaverage-garden-28705
08/18/2022, 12:18 AM@replayio/cypress, adds our custom browsers to the configuration but when we try to use them via --browser, Cypress warns about an invalid browser and then launches it anyway. The warning is confusing users and I'm hoping to get some advice on how to suppress this warning. Any thoughts?hundreds-spoon-43121
08/18/2022, 1:48 AMmicroscopic-advantage-2187
08/18/2022, 9:53 AMbash
npm run cy:run -- --record --spec "cypress/e2e/my-spec.cy.js"
but it's not working, it actually run entire other tests : /stale-optician-85950
08/18/2022, 10:20 AMcy:run is syntax from package.json script, do you have this in your script?
{
"scripts": {
"cy:run": "cypress run"
}
}microscopic-advantage-2187
08/18/2022, 10:21 AMnpx cypress runstale-optician-85950
08/18/2022, 10:23 AM.only to a single test to use with Cypress open i.e.
it.only('I'm testing my homepage', () => {