lively-library-21721
02/24/2023, 2:35 PMmelodic-egg-83620
02/24/2023, 3:07 PMmany-needle-50240
02/24/2023, 3:17 PMdescribe("Cypress", () => {
it("opens the app", () => {
cy.visit("http://localhost:3000")
})
it("opens the app and clicks on a hotel", () => {
//cy.visit("http://localhost:3000")
cy.get("a").first().click()
cy.location("pathname").should("include", "hotel")
})
it("navigates to the form to add a review", () => {
//cy.visit("http://localhost:3000")
//cy.get("a").first().click()
cy.get("button").contains("+ Add Review").click()
cy.location("pathname").should("include", "new")
})
})
acceptable-family-97943
02/24/2023, 3:17 PMtestIsolation
might help with this. However, this does not work, not on global config level (legacy nor strict does anything) or on describe/suite level (the option isn't even available in the typings).
Any help would be appreciated on how to deal with this 🙂early-alligator-31669
02/24/2023, 3:52 PM--auto-open-devtools-for-tabs
flag as described [here][1] to launch devtools via cypress config, but it selects the Elements tab by default. Are there any other args that can be supplied to get the Console tab selected instead?
[1]: https://docs.cypress.io/api/plugins/browser-launch-api#Open-devtools-by-defaultbrave-doctor-62978
02/24/2023, 6:35 PMCypress.moment = moment
except moment would have its time mocked like the tests do?faint-ocean-92094
02/24/2023, 9:42 PMripe-apple-15128
02/25/2023, 1:30 AMimport Sparkline from "./Sparkline";
describe('Sparkline', () => {
it('Displays correct stat trend', () => {
cy.mount(
<Sparkline
description="foo"
data={[]}
previousData={[]}
valueFunction={()=> 2}
/>
);
});
});
export {};
ripe-carpenter-12616
02/25/2023, 5:12 AMfull-agent-46561
02/25/2023, 1:07 PMcold-author-79999
02/25/2023, 3:48 PMripe-apple-15128
02/25/2023, 8:04 PMERROR in Error: Child compilation failed:
Entry module not found: Error: Can't resolve '/cypress/support/component-index .html' in '/':
I'm also seeing this error "Parsing error: Unexpected token" error after private/public keyword.
Been trying to get component tests up and running for a while. Would really appreciate any feedback.clever-teacher-79310
02/26/2023, 12:22 AMadamant-printer-77643
02/26/2023, 3:51 PM- name: Cypress run
uses: cypress-io/github-action@v5
env:
API_BASE_URL: http://127.0.0.1:1234/
with:
start: npm run dev
wait-on: "http://127.0.0.1:1234/"
incalculable-wall-61750
02/26/2023, 4:56 PMgifted-book-25305
02/26/2023, 10:11 PMcool-businessperson-62347
02/26/2023, 10:31 PMcalm-gigabyte-78371
02/27/2023, 12:56 AMripe-apple-15128
02/27/2023, 1:22 AM✖ 「wdm」: 1032 modules
src/utilities/ReportUtilities.ts
Line 59:10: Parsing error: Unexpected token
57 | export default class ReportUtilities {
58 | foo: number = 5;
> 59 | public static WORST_PERCENTILE = 90;
ℹ 「wdm」: Failed to compile.
I tried putting eslint config inside Cypress docker container. Not really sure where to go from here.bumpy-insurance-8581
02/27/2023, 2:02 PMbrainy-answer-45873
02/27/2023, 2:42 PMkind-eve-72052
02/27/2023, 4:42 PM--no-user-gesture-required
and --user-gesture-required
and for Firefox by setting media.autoplay.blocking_policy
and media.autoplay.default
. But not sure how I am supposed to do this for Webkit/Safari. Also in one test I need to uncheck "Block all cookies" and "Prevent cross-site tracking" settings for Safari only. Is there a way to change these settings for Webkit in Cypress?many-musician-13324
02/27/2023, 6:18 PMpurple-ice-75399
02/27/2023, 7:45 PMCannot read properties of null (reading 'reload')
Does this workaround need to be different for Cypress 11.0.1+? Or what can I do here?
Thanks!echoing-tent-95037
02/27/2023, 10:33 PM.github
location which isn't on the docker container image. How can I go about adding that commit message back to Cypress dashboard?ripe-apple-15128
02/28/2023, 1:37 AMCircular symlink detected: "/usr/bin/X11" points to "/usr/bin"
X11 works and GUI appears, but when I click a testing type, cypress exits and I get the above code.wonderful-zoo-99437
02/28/2023, 6:53 AMwitty-magazine-45881
02/28/2023, 7:14 AMswift-kitchen-62493
02/28/2023, 10:15 AMbrash-tiger-52405
02/28/2023, 10:34 AM