ancient-tailor-59288
10/21/2022, 12:35 PMmysterious-belgium-25713
10/21/2022, 1:02 PMbrief-midnight-25297
10/21/2022, 1:28 PMgray-kilobyte-89541
10/21/2022, 1:39 PMwindow.print
method call the application makes to prevent the dialog from openingbrief-midnight-25297
10/21/2022, 1:56 PMgray-kilobyte-89541
10/21/2022, 2:02 PMcy.request
command, see https://cypress.tips/courses/network-testingstale-horse-13605
10/21/2022, 7:08 PMrapid-memory-85767
10/21/2022, 8:15 PMrapid-memory-85767
10/21/2022, 8:17 PMhttps://s2l.sendtonews.com/stn_trk.gif▾
rapid-memory-85767
10/21/2022, 8:19 PMhttps://s2l.sendtonews.com/stn_trk.gif▾
rapid-memory-85767
10/21/2022, 9:24 PMgray-kilobyte-89541
10/22/2022, 4:44 PMmysterious-belgium-25713
10/22/2022, 5:37 PMmany-animal-60948
10/22/2022, 7:12 PMtypescript
cy.get("#something").should("not.exist.for", "200ms")
I created this command to solve this, but I was wondering if there's something built-in that I've missed.
https://gist.github.com/ksandin/c93206280af3793aec83df2346e19bbcimportant-fish-21193
10/23/2022, 12:14 AMimportant-fish-21193
10/23/2022, 12:20 AMrapid-memory-85767
10/23/2022, 6:09 AMrapid-memory-85767
10/23/2022, 6:13 AMhappy-dinner-13480
10/23/2022, 10:16 AMexpected [ 'receipt', 'invoice' ] to equal [ 'receipt', 'invoice' ]
This seems to work:
expect(data.request.body.document_types[0]).to.eq('receipt');
expect(data.request.body.document_types[1]).to.eq('invoice');
happy-dinner-13480
10/23/2022, 11:13 AMtypescript
cy.wait('@firstChart').then((data: any) => {
expect(data.response.statusCode).to.eq(200);
expect(data.request.body.document_types).to.deep.eq(['receipt', 'invoice']);
expect(data.request.body.filters[0]).to.deep.equal({
comparison_operator: '==',
field: 'purchase_date',
type: 'field_value',
value: 'this_year',
});
});
this workskind-artist-92362
10/23/2022, 11:34 AMkind-artist-92362
10/23/2022, 11:49 AMkind-artist-92362
10/23/2022, 12:06 PMkind-artist-92362
10/23/2022, 12:06 PMfresh-doctor-14925
10/23/2022, 1:20 PM.invoke('removeAttr', 'target')
, so for you it would be:
cy.get("form center:first-child input[tabindex='0']")
.invoke('removeAttr', 'target')
.click()
Also, consider adding some test ids to your application if possiblekind-artist-92362
10/23/2022, 2:33 PMkind-artist-92362
10/23/2022, 2:33 PMkind-artist-92362
10/23/2022, 2:36 PMkind-artist-92362
10/23/2022, 2:36 PMkind-artist-92362
10/23/2022, 3:21 PM