Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 07:21
    eps1lon commented #4997
  • 03:05
    renovate[bot] edited #3777
  • Aug 23 22:37
    brian-mann commented #4994
  • Aug 23 22:23
    quentinus95 commented #2492
  • Aug 23 22:21
    thatwpdeveloper commented #3114
  • Aug 23 21:21
    jennifer-shehane edited #5034
  • Aug 23 21:20
    jennifer-shehane labeled #5024
  • Aug 23 21:19
    jennifer-shehane closed #5025
  • Aug 23 21:19
    jennifer-shehane commented #5025
  • Aug 23 21:17
    jennifer-shehane edited #2132
  • Aug 23 21:14
    jennifer-shehane closed #4994
  • Aug 23 21:14
    jennifer-shehane commented #4994
  • Aug 23 20:55
    jennifer-shehane review_requested #5035
  • Aug 23 20:46
    trucklos commented #4742
  • Aug 23 20:30
    jennifer-shehane labeled #5033
  • Aug 23 20:29
    jennifer-shehane labeled #5033
  • Aug 23 20:29
    jennifer-shehane commented #5033
  • Aug 23 18:32
    renovate[bot] edited #3777
  • Aug 23 17:47
    Tav0 commented #2492
  • Aug 23 17:24
    sikanhe commented #4383
Emanuil
@Emanuil_C_twitter
@bahmutov, or anyone else, do you have an example on how to dynamically load a cypress plugin on run ? e.g. I want to load cypressCodeCoverageTask to collect the code coverage object only if I pass to the command line --coverage flag
Uy Tran
@UyQTran
Hi. The docs website doesn't work for me: https://i.gyazo.com/5862b790a870a48697feee53df74ac43.png
I'm running Chrome on Mac
Can't click on anything :(
Jorrit
@jorrit-wehelp
yeah, it's broken...it' been reported
Must mean they are not 'eating their own dog food' and properly testing it ;p
PrasadNutalapati
@PrasadNutalapati

@kamituel yes, it is possible for us to support downloads in various ways. We can force the browser to auto accept downloads (and even specify the download location) thus enabling you to verify it's present with cy.readFile. There is another option here, where we also intercept download requests at the network layer (and bypass the browser altogether). This would be a much better cross browser approach, since not all browsers support the "auto download" option.

@brian-mann
Dear Sir;
Does this feature got implemented already ? I am using Cypress 3.4.1. Please respond, as we are needing this feature in many a places in our testing.

Steve Lee
@SteveALee
Should .should(.not.have.attr', 'attrib') work? It fails for me - or rather it always passes :)
I had to use .should(div => expect(div.attr('key'), 'key attrib').to.be.undefined)
Scaratch that _ just spotted a couple of typeo-s
no .should('not.have.attr', 'key') always fails if key is set or not
Steve Lee
@SteveALee
it sees attr needs a value as well as a key? Surely that should be optional?
Jorrit
@jorrit-wehelp
yeah, negating certain assertions is a bit weird... how about cy.get('div[key]').should('not.exist') ?
dgjdgj
@dgjdgj
How to tell Cypress in which Delete button to select to delete certain element in the page , like in here http://prntscr.com/ovn6vq ? Selecting by selector isnt a good idea , because whenever an item is deleted , the selector changes from cy.get(':nth-child(7) > .form-control'). in cy.get(':nth-child(4) > .form-control').
Jorrit
@jorrit-wehelp
think from a user perspective..... change your test data not to just have 'Test' as string... so the 'user' (and cypress) has something to identify and click on
so in cypress you can just grab the row/parent/whatever for 'Test entry IV' title/string, then click the button labelled delete
Steve Lee
@SteveALee
@jorrit-wehelp - yes I like that - more BDD declarative style. Thanks
dgjdgj
@dgjdgj
@jorrit-wehelp http://prntscr.com/owlsh1 okay than , how can i tell cypress go to FAQ element and click to Edit button near it
Steve Lee
@SteveALee
@jorrit-wehelp except the subject is the div, not the attr :(
Jorrit
@jorrit-wehelp
@dgjdgj can't tell from a screenshot. This depends on the HTML layout.
probalby something like cy.get('.row:contains("FAQ")').within(_ => cy.contains('delete').click())
dgjdgj
@dgjdgj
@jorrit-wehelp http://prntscr.com/owluqs
Jorrit
@jorrit-wehelp
Well, something like cy.get('article:contains("FAQ")').contains('delete').click() ... might still need more strict selectors, depending on e.g. the string 'FAQ' showing up in other places.
dgjdgj
@dgjdgj
@jorrit-wehelp if i add another element in page with name FAQ , it will be the last in the list , so here cy.get('article:contains("FAQ")').contains('delete').click() can i use last () ?
Jorrit
@jorrit-wehelp
you could put a last after the get.... but much better to be more explicit, usually there some logical grouping/structure in the HTML so you can prefix the selector with some other class/element
Jan Wiemers
@janwiemers
hey there
Jorrit
@jorrit-wehelp
that's also often where I use a `.within, e.g. cy.get('main-editor-area').within( .....do the component/element specific assertions)
KiT-Maverik
@KiT-Maverik

Hey guys!
In Chrome 76 they disabled 'disable-infobars' flag.
I found and replacement for this,

https://cloud.google.com/docs/chrome-enterprise/policies/?policy=CommandLineFlagSecurityWarningsEnabled

...but can't get how can I pass this in chrome args. Can anybody advise?

KiT-Maverik
@KiT-Maverik
@jorrit-wehelp thanks. but i know how to push arguments. the thing is that I can't get how to push exactly this argument. Ilooks like I cant handle it's syntax(
policy-blah-blah
Jorrit
@jorrit-wehelp
ohh, right, sorry. I just saw the 'commandLine' assuming it was an command line argument
shitesh12345
@shitesh12345_twitter
hello , am facing difficulty over writing a test which allows to match the call google analytics??
Jan Wiemers
@janwiemers
hey qq I know that this is a topic that has been talked up and down but is there a way that I can manage the domain of the cypress test runner?
my problem is that our application uses auth0 for authentication and cypress follows our redirect and uses our auth0 domain as its domain which causes it to not be able to wait() for xhr requests
I tried to visit a page that a user can see logged out first and then follow the redirect to auth0 but that seem to not work due to the single domain restriction
I have "chromeWebSecurity": false set in my cypress.json
dinuemani
@dinuemani
how to fix this issue please.. "ReferenceError: cypress is not defined" when i try to run tests....do i need to reinstall cypress or?
Jan Wiemers
@janwiemers
any idea how I can get this to work?
Gleb Bahmutov
@bahmutov
@maxmarkus either create separate record keys from the dashboard or even create separate projects and pass project id and record key as env variable
@Emanuil_C_twitter sure, loading plugin is really just loading its tasks from plugins file and loading support commands based on environment variable. Open an issue in https://github.com/cypress-io/code-coverage/issues and I will document it
PrasadNutalapati
@PrasadNutalapati
@abataub Akshay:
I got the same requirement. Does your issue got answered ?
Joseph Spear
@joespeargresham
When running Cypress on Windows 10 on both Electron and Chrome, the browser navigator.language is always set to en_US, despite my OS language and locale settings being set to English UK. How can I get Cypress to detect my language correctly?
Tom Longson
@nym
is there a way to a) get logs from console saved b) way to create a log/error with multiline details?
Raiune
@Raiune
I need help doing a programmatic login to an OAuth2 implicit flow auth server. The cypress docs told me to come here for help, but so far no one has ever responded. Anyone ever had to do something like this before?
kkavyaa
@kkavyaa

Hi there, I am trying to use the hover workaround on an element '#desktop-header-cnt > div.desktop-bound > div.desktop-actions > div' on 'www.myntra.com' page. Doesn't seem to work.

  1. I tried cy.get('#desktop-header-cnt > div.desktop-bound > div.desktop-actions > div').trigger('mouseover');
  2. cy.get('#desktop-header-cnt > div.desktop-bound > div.desktop-actions > div').invoke('show');

No luck. Could anyone tell what I am missing in this?

D.
@thatwpdeveloper

Hello, everyone! Can somebody give me a hint why my dynamic tests are not being picked up and showed as failed?

describe("Parent test suite", function () {
    before(async function () {
        const rows = await crawl2();
        console.log('1')
        describe(`Testing ${rows.length} rows`, function () {
            console.log('2')
            rows.forEach(function (row, index) {
                console.log('3')
                it(`Test row ${index}`, function() {
                    console.log('4')
                    cy.log(`${index}`)
                });
            });
        });
    });


    ("stub", async function(){})  // this is important!
});

![alt]: (https://i.ibb.co/w6YV1WS/Screenshot-2019-08-23-at-23-01-00.png )

Tom Longson
@nym
@Raiune there's a recipe i think for that
@Raiune i had to do one with auth0, ultimately we came up with a way to load our app without real creds
suyash1502
@suyash1502
is there a way to do mobile automation using perfecto and cypress ?