ancient-zoo-12002
05/09/2022, 8:30 AMgifted-boots-63851
05/09/2022, 8:35 AMfirebase
in my tests on the browser side?
I have this error SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
I tried to fix this by using webpack/ts-loader/etc. but it seems to create conflict with nuxt
what is using these packages, and thus I can't launch my project.
here's the code I'm trying to run:
ts
// cypress/support/command.ts
import { initializeApp } from 'firebase/app' // this import causes the error
const app = initializeApp({
// config
})
gifted-boots-63851
05/09/2022, 9:27 AMError: Webpack Compilation Error
/Users/anon/project/cypress/tsconfig.json
[tsl] ERROR
TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*.ts"]' and 'exclude' paths were '["../node_modules","../.nuxt","../dist","../cypress/**/*","../**/*.stories.js","../**/*.stories.ts"]'.
in the file preprocessor hook, I use either cucumber or webpack nowgifted-boots-63851
05/09/2022, 9:50 AMts
const webpackOptions = {
webpackOptions: {
mode: 'development',
resolve: {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
exclude: [/node_modules/],
use: [
{
loader: 'ts-loader',
options: {
// skip typechecking for speed
transpileOnly: true,
},
},
],
},
],
},
},
}
const options = {
...browserify.defaultOptions,
typescript: require.resolve('typescript'),
}
on('file:preprocessor', (file: any) => {
return file.filePath.includes('.feature')
? cucumber(options)(file)
: webpack(webpackOptions)(file)
})
NOTE: a better way is to use webpack to also preprocessed .feature
file with cucumber https://github.com/badeball/cypress-cucumber-preprocessor/blob/v9.1.0/examples/webpack/cypress/plugins/index.tscurved-intern-4253
05/09/2022, 2:03 PMcypress
module itself. But this doesn't let me change the Test Runner code, because that isn't in node_modules/cypress
. Is there a way to similarly make patches to Test Runner and commit them to git?sparse-sandwich-95566
05/09/2022, 2:08 PMcurved-intern-4253
05/09/2022, 2:25 PM--browser chrome
was required, the default electron
didn't work, but it had very different symptoms https://github.com/cypress-io/cypress/issues/19258gentle-accountant-4760
05/09/2022, 2:42 PMgentle-accountant-4760
05/09/2022, 2:44 PMts
arrayTest = [];
cy.get('#test').should('be.visible').each(($el) => {
arrayTest.push($el.text().replace(/\./g, ''));
});
DOESNT WORK
ts
arrayTest = [];
cy.get('#test').should('be.visible').each((el) => {
arrayTest.push(el.text().replace(/\./g, ''));
});
gray-kilobyte-89541
05/09/2022, 2:45 PMbored-dinner-46643
05/09/2022, 2:55 PMmagnificent-finland-58048
05/09/2022, 4:28 PMmagnificent-finland-58048
05/09/2022, 4:31 PMmagnificent-finland-58048
05/09/2022, 4:33 PMsparse-sandwich-95566
05/09/2022, 4:35 PMsparse-sandwich-95566
05/09/2022, 4:38 PMgray-kilobyte-89541
05/09/2022, 5:25 PMwonderful-author-91008
05/09/2022, 9:38 PMfull-postman-68262
05/10/2022, 11:37 AMWe encountered an unexpected error talking to our servers.
We will retry 3 more times in 30 seconds...
The server's response was:
RequestError: Error: connect ECONNREFUSED 127.0.0.1:1234
Does anyone have any ideas if there's any sort of system settings that can impact with my machine connecting up to Dashboard? Currently using an M1 Mac. I'm wracking my brain, but I've not seen any system config mentioned in any of the Cypress docs.full-postman-68262
05/10/2022, 11:48 AMlittle-france-10142
05/10/2022, 10:40 PMit('checks all links', () => {
cy.visit('http://localhost:3000/logout')
cy.contains('login').click()
cy.location('pathname').should('eq', '/login')
cy.go('back')
})
adventurous-umbrella-97585
05/11/2022, 3:17 AMechoing-painting-40909
05/11/2022, 3:58 AM.click({force: true})
not being required to type in a field, the purpose of the button is missing in your explanation.
That's not the default behavior and I'm not able to reproduce it based on the context provided.adventurous-umbrella-97585
05/11/2022, 4:06 AMechoing-painting-40909
05/11/2022, 4:12 AMadventurous-umbrella-97585
05/11/2022, 4:15 AMcreamy-minister-50636
05/11/2022, 9:11 AMgray-kilobyte-89541
05/11/2022, 10:36 AMnpm install
aloof-lifeguard-45424
05/11/2022, 10:43 AMnpm run cy:open
which is the script that runs this exact command cypress open
The console opens, I click on the first test and then it crashes with the console closing and with and error in the terminal, reproduced bellow:aloof-lifeguard-45424
05/11/2022, 10:43 AM$ npm run cy:open
> cypress-example-kitchensink@0.0.0-development cy:open C:\Users\jboghean\Desktop\cypress-example-kitchensink
> cypress open
[8488:0511/095408.702:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is
GET /__/ 200 5.242 ms - -
GET /__cypress/runner/cypress_runner.css 200 4.690 ms - -
GET /__cypress/runner/cypress_runner.js 200 2.942 ms - -
GET /v1/buckets/monitor/collections/changes/changeset?collection=query-stripping&bucket=main&_expected=0 200 672.765 ms - -
GET /v1/buckets/monitor/collections/changes/changeset?collection=message-groups&bucket=main&_expected=0 200 675.964 ms - -
GET /__cypress/runner/favicon.ico 200 3.398 ms - -
GET /v1/buckets/main/collections/query-stripping/changeset?_expected=1649762862679 200 545.892 ms - -
GET /v1/buckets/main/collections/message-groups/changeset?_expected=1646250823109 200 548.560 ms - -
GET /__cypress/runner/fonts/fa-solid-900.woff2 200 2.909 ms - 76120
GET /__cypress/runner/fonts/mulish-latin-400-normal.woff2 200 3.132 ms - 31176
GET /chains/remote-settings.content-signature.mozilla.org-2022-05-21-02-53-51.chain 200 681.910 ms - -
GET /__cypress/runner/fonts/mulish-latin-500-normal.woff2 200 9.813 ms - 31176
GET /chains/remote-settings.content-signature.mozilla.org-2022-06-10-13-16-32.chain 200 691.777 ms - -
GET /__cypress/iframes/integration%2F1-getting-started%2Ftodo.spec.js 200 4.484 ms - -
GET /__cypress/runner/fonts/open-sans-latin-400-normal.woff2 200 7.828 ms - 14380
GET /v1/buckets/monitor/collections/changes/changeset?collection=cfr&bucket=main&_expected=0 200 538.591 ms - -
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db