Multiple POST requests in loop #21355
Unanswered
Alkmaar072
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a script to test automatic. First I create a shipment with random items. After that I make a POST request in the for-loop. Everything is working fine, but the POST request keeps giving the only the data from the last location. But my console prints data from all the locations
Does anybody know what I am doing wrong? Is it maybe impossible to do POST requests in a for loop?
`///
describe('Create random shipments, Sign in, scan items, to transit', () => {
beforeEach(() => {
cy.visit('http://localhost:3000/')
})
it('Sign in, scan items, to transit', () => {
const username = ''
const password = ''
})`
Beta Was this translation helpful? Give feedback.
All reactions