better-elephant-20934
02/10/2023, 6:36 PMgray-kilobyte-89541
02/10/2023, 7:43 PMsilly-hairdresser-33662
02/10/2023, 7:52 PMfreezing-piano-2792
02/11/2023, 11:09 AMfreezing-piano-2792
02/11/2023, 2:23 PMmysterious-psychiatrist-29678
02/13/2023, 1:45 PM-- insecure
switch in an API call, but can't construct cy.request(), how should I do?
curl -X GET $URL --header "Authorization: Bearer $TOKEN" --insecure
mysterious-psychiatrist-29678
02/13/2023, 3:00 PM{
"status": "HEALTH_OK",
"checks": {},
"mutes": []
}
that is not working:
expect(response.body.status).to.equal("HEALTH_OK")
modern-addition-58981
02/13/2023, 4:32 PMnice-whale-57626
02/13/2023, 6:30 PMnice-whale-57626
02/13/2023, 6:32 PMon ${viewport.name} view
, () => {
beforeEach(() => {
cy.viewport(viewport.size);
});
it("searches for a product and checks the search API response", () => {
// Visit the Laithwaites Wine UK homepage
cy.visit("https://webdev001.laithwaites.co.uk:9190/");
// Find the search input and type in a search term
let searchInputSelector;
cy.log(Cypress.config("viewportWidth"))
if (Cypress.config("viewportWidth") < 768) {
searchInputSelector = "#search";
} else {
searchInputSelector = ".search-group-container > .form-control";
}
cy.get(searchInputSelector).type("Pinot Noir"); `gray-kilobyte-89541
02/13/2023, 7:36 PMnice-whale-57626
02/13/2023, 7:40 PMnice-whale-57626
02/13/2023, 8:04 PMcy.window()
.its("innerWidth")
.then((w) => {
if (w >= 768) {
cy.get(".search-group-container > .form-control").type(
"Pinot Noir"
);
} else {
cy.get("#search").type("Pinot Noir");
}
});
blue-battery-71202
02/14/2023, 8:17 AMmysterious-psychiatrist-29678
02/14/2023, 8:56 AMgreat-arm-27075
02/14/2023, 1:42 PMgreat-arm-27075
02/14/2023, 1:45 PMgray-kilobyte-89541
02/14/2023, 2:07 PMhundreds-author-68171
02/14/2023, 2:19 PMquiet-fireman-69819
02/14/2023, 2:58 PMmysterious-psychiatrist-29678
02/14/2023, 4:45 PMit("create a deployment", () => {
const param = String.toString(cy.readFile('deployment.yaml'))
cy.request({
method: 'POST',
url: createDeployment,
headers: {
Authorization: 'Bearer ' + TOKEN
},
body: {
param
}
})
})
cold-van-45410
02/14/2023, 5:22 PMmany-airline-45402
02/14/2023, 6:50 PMgray-kilobyte-89541
02/14/2023, 7:15 PMcy.then
ambitious-monkey-72386
02/15/2023, 7:49 AMambitious-monkey-72386
02/15/2023, 7:49 AMmany-airline-45402
02/15/2023, 8:45 AMmysterious-psychiatrist-29678
02/15/2023, 9:15 AMlet param
it("create a deployment", () => {
cy.then(() => {
param = String.toString(cy.readFile('deployment.yaml'))
})
I'm getting back 422: Unprocessable Entity
green-controller-97889
02/15/2023, 12:10 PMcy.log()
inside my custom commands`Cypress.Commands.add()` but nothing gets logged. Why ?gray-kilobyte-89541
02/15/2023, 12:34 PM