polite-potato-14743
12/15/2022, 8:01 PMpolite-potato-14743
12/15/2022, 8:06 PMpolite-potato-14743
12/15/2022, 10:33 PMthankful-wire-37848
12/16/2022, 7:31 AMasync/await
at some point which causes some cookie not to be set in time maybe? We'd need more concrete info/code to asses this probably.little-kitchen-65586
12/16/2022, 9:29 AMfresh-doctor-14925
12/16/2022, 9:41 AMfast-greece-21687
12/16/2022, 1:06 PMCan't run because no spec files were found.
but on the console its showing me correct path of the file. command that im running: "test": "env-cmd -f .env npx synpress run --configFile synpress.config.js --config supportFile='tests/support/index.js' --spec tests/e2e/specs/*.cy.{js,jsx,ts,tsx}"
nice-lifeguard-81070
12/16/2022, 1:21 PMfresh-doctor-14925
12/16/2022, 1:25 PMthousands-house-85089
12/16/2022, 1:45 PMthousands-house-85089
12/16/2022, 1:47 PMthousands-house-85089
12/16/2022, 1:48 PMthousands-house-85089
12/16/2022, 1:48 PMbillions-receptionist-99356
12/16/2022, 1:57 PMfresh-doctor-14925
12/16/2022, 2:04 PMsquare-honey-48197
12/16/2022, 10:12 PMbefore
hook is timing out in less than 4 seconds, despite these settings in my config?
config sample:
TypeScript
screenshotsFolder: 'screenshots',
viewportWidth: 1280,
viewportHeight: 720,
videosFolder: 'videos',
requestTimeout: 10000,
responseTimeout: 160000,
nice-lifeguard-81070
12/17/2022, 2:34 AMthankful-wire-37848
12/17/2022, 2:29 PMfast-greece-21687
12/17/2022, 5:59 PMfast-greece-21687
12/17/2022, 6:18 PMacceptable-tailor-43291
12/18/2022, 2:16 PM/create/bill
returns an id
of the create bill, (id is 123456)
Post api2: /create/checkout?billId=123456
I am running this two command synchronously from api1 to ap2 in my app.
js
let newId = "";
cy.intercept(post, Api1).as('api1');
cy.get('#submit').click().then(() => {
cy.wait(@api1).its('response.status').should('eq', 200);
cy.get(@api1).its('response.body').then((body) => {
newId = body.id;
});
});
gray-kilobyte-89541
12/18/2022, 4:20 PMbillions-king-35651
12/19/2022, 9:05 AMjs
cy.get('[data-cy="wallet-transactions-body"]')
.filter(":visible")
.should("exist")
.should("be.visible");
The first command get
is showing 2
elements on cypress dashboard with a warning: One or more matched elements are not visible.
However, the second command is showing 0
with an error: Timed out retrying after 4000ms: Expected to find element: :visible, but never found it. Queried from element: [ <tbody.jsx-c0c96518d1509577>, 1 more... ]
However, the table is displaying well on the cypress dashboard webpage and I keep wondering why the test is failing.
Note: I am trying to fetch the content of the table from and API before rendering it on the webpage.
Anything that can be done to make this test pass will highly be appreciated. Thanksfresh-doctor-14925
12/19/2022, 9:55 AMstocky-kilobyte-57323
12/19/2022, 1:17 PMcy.get('body').type('{ctrl+k}').wait(1000)
any reason this shouldn't work for a global command palette shortcut?rough-agent-43374
12/19/2022, 1:31 PMcy.get('.col-lg-8 > .form-control').clear();
cy.get('.col-lg-8 > .form-control').type('testRejectReason');`
This is the first input field:
<div class="row">
<div class="col-lg-4"><label class="font-normal"> <input icheck type="radio" name="dataState" ng-model="dataToEdit.rejectionReason" ng-value="50"> {{ " page.merchant__eRx.rejection_reasons.other_reason" | translate }}</label></div>
<div class="col-lg-8"><input name="otherReason" ng-model="dataToEdit.otherReason" type="text" class="form-control" /></div>
</div>
And this is the second input field, which should actually not be changed:
<div class="input-group" style="display: flex; flex-direction: row; align-items: center; justify-content: center; width: 160px">
<input name="pzn" ng-model="dataToEdit.pzn" style="padding-left: 8px; padding-right: 0" type="text" class="form-control" />
<button class="input-group-label btn-primary" ng-disabled="itemLoading" ng-click="getItem()">
<span ng-show="itemLoading"><i class="fa fa-refresh fa-spin" style="margin-right: 10px"></i></span>
{{ 'buttons.go' | translate }}
</button>
</div>
thankful-wire-37848
12/19/2022, 1:42 PMcy.get('.col-lg-8 > .form-control')
isn't unique for the input you are trying to test. Why not improve the selector before initiating the type command? cy.get(':input[name=otherReason]').type('testRejectReason')
rough-agent-43374
12/19/2022, 1:44 PMlemon-wall-91819
12/19/2022, 2:08 PMlemon-wall-91819
12/19/2022, 2:18 PM