aloof-gigabyte-3148
12/01/2022, 3:09 PMpolite-garage-57372
12/01/2022, 4:22 PMthankful-lock-39376
12/01/2022, 4:31 PMenough-truck-68085
12/01/2022, 4:53 PMadorable-sundown-22347
12/01/2022, 5:04 PMadorable-sundown-22347
12/01/2022, 5:04 PMadorable-sundown-22347
12/01/2022, 5:06 PMbitter-fountain-36713
12/01/2022, 5:12 PMadorable-sundown-22347
12/01/2022, 5:18 PMbitter-fountain-36713
12/01/2022, 5:23 PMgray-kilobyte-89541
12/01/2022, 5:24 PMgray-kilobyte-89541
12/01/2022, 5:27 PM.then to properly take the timestamps between the commands. Or use https://github.com/bahmutov/cypress-timestampsbrave-mouse-59640
12/01/2022, 5:28 PMadorable-sundown-22347
12/01/2022, 5:31 PMpolite-garage-57372
12/01/2022, 6:06 PMmicroscopic-terabyte-93535
12/01/2022, 6:58 PMmicroscopic-terabyte-93535
12/01/2022, 7:02 PMfresh-doctor-14925
12/01/2022, 7:24 PMadorable-sundown-22347
12/01/2022, 7:31 PMmillions-scientist-9990
12/01/2022, 8:01 PMgray-kilobyte-89541
12/01/2022, 8:37 PMcy.then (pun intended)adorable-sundown-22347
12/01/2022, 8:48 PMgray-kilobyte-89541
12/01/2022, 9:59 PMadorable-sundown-22347
12/01/2022, 10:30 PMpowerful-agency-55160
12/02/2022, 1:45 AMwait never wait for this intercept, so return always undefined.
when i'm trying give cy.wait(2000), this wait can assertion this response because Upload file is finish. Why this happen, and what solution to wait for this intercept.
Thank you.gray-kilobyte-89541
12/02/2022, 1:56 AMpowerful-agency-55160
12/02/2022, 2:07 AMpowerful-student-85548
12/02/2022, 4:18 AMbitter-fountain-36713
12/02/2022, 4:30 AMable-guitar-55705
12/02/2022, 4:33 AMyaml
name: Cypress Tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v4.1.0
with:
build: npm run build
start: npm start
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
I have tried the following and all have failed:
1. putting the environment variables in cypress.config.ts
2. putting the environment variables in github secrets
My test:
ts
describe('Plan', () => {
it('Displays login required and redirects user to login page when clicked on', () => {
cy.visit('http://localhost:3000/plan')
cy.findByRole('link', { name: /login required/i }).click()
cy.url().should('include', '/login')
})
})
I'm new to cypress testing and testing in general so any help is much appreciated. Thank you!