gray-kilobyte-89541
11/14/2022, 4:08 PMfew-oyster-82478
11/14/2022, 4:35 PMtesting-library/cypress
, I've setup commands.ts
with the following config:
// cypress/e2e/commands.ts
import '@testing-library/cypress/add-commands';
however I'm getting a TypeError:
cy.findByRole is not a function
cypress/e2e/up.cy.ts:9:6
7 |
8 | Then('I should see the auth form', () => {
> 9 | cy.findByRole('button');
| ^
10 | });
any idea what I might be missing?user
11/14/2022, 7:00 PMstale-optician-85950
11/14/2022, 9:05 PMread ECONNRESET
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
It's working fine in another GH Actions sandbox repository but getting the error in our large project repo (same Node version, same Ubuntu version, except running localhost). Not much to be found when Googling!
- name: Install webkit dependencies
if: matrix.platform == 'safari'
uses: cypress-io/github-action@v4
with:
build: npx playwright install-deps webkit
runTests: false
- name: Run integration tests - device = safari
if: matrix.platform == 'safari'
uses: cypress-io/github-action@v4
with:
install: false
working-directory: packages/web/corporate
browser: webkit
start: yarn serve
wait-on: 'http://localhost:3000'
command: yarn test:cy:run:safari --spec 'cypress/e2e/components/uco-c-header.int.test.cy.ts'
astonishing-air-69539
11/14/2022, 9:24 PMstale-furniture-7985
11/14/2022, 9:41 PMadorable-smartphone-87280
11/14/2022, 9:43 PMastonishing-air-69539
11/14/2022, 9:44 PMastonishing-air-69539
11/14/2022, 9:44 PMastonishing-air-69539
11/14/2022, 9:44 PMastonishing-air-69539
11/14/2022, 9:45 PMastonishing-air-69539
11/14/2022, 9:46 PMadorable-smartphone-87280
11/14/2022, 10:15 PMe2e
object? It certainly does matter where you have that line of config, but the order of members within objects doesn't matter.astonishing-air-69539
11/14/2022, 10:22 PMrich-rocket-31635
11/14/2022, 11:17 PMloud-monitor-58963
11/15/2022, 2:17 AMnpx open cypress
... still, just a blank browser. It doesn't matter if I choose Chrome or Electron.
I'm guessing it is something local and permission related. I walk through the same process on another machine without issue. Still no clue as to what is keeping the initial page from rendering.adorable-smartphone-87280
11/15/2022, 4:12 AMbaseUrl
value?mysterious-belgium-25713
11/15/2022, 8:01 AMfaint-thailand-67863
11/15/2022, 8:17 AMfresh-doctor-14925
11/15/2022, 9:13 AMfew-oyster-82478
11/15/2022, 9:21 AMGET /__cypress/tests?p=cypress%5Ce2e%5Cup.feature 200 249813.504 ms - -
GET /__cypress/tests?p=cypress%5Csupport%5Ce2e.ts 200 278177.992 ms - -
few-oyster-82478
11/15/2022, 9:22 AMfew-oyster-82478
11/15/2022, 9:23 AMfew-oyster-82478
11/15/2022, 9:24 AMimport { Then, When } from '@badeball/cypress-cucumber-preprocessor';
When('I visit the frontpage', () => {
const url = String(Cypress.config().baseUrl);
cy.visit(url);
});
few-oyster-82478
11/15/2022, 9:25 AM11.0.1
millions-scientist-9990
11/15/2022, 10:30 AMmillions-scientist-9990
11/15/2022, 11:04 AMfuture-eye-56254
11/15/2022, 11:38 AMfuture-eye-56254
11/15/2022, 11:38 AMfuture-eye-56254
11/15/2022, 11:38 AM