In case, if 'Panasonic' is entered directly in cy.intercept property, it works ok
cy.intercept('GET', '**/part-number/search?q=Panasonic**').as('getPNList')
but in case if this value added via variable into cy.intercept property, it doesn't work and cy.wait falls with timeout. What could be the reason?
let pnName = 'Panasonic'
cy.intercept('GET', '**/part-number/search?q={@pnName}**').as('getPNList')
cy.get('.select2-search__field').click().type(pnName)
cy.wait('@getPNList').then((interception) => {
expect(interception.response.statusCode).eq(200)
})