tests - removed test for img thumbnail, commented payment test, bump mail fetching retries (#3701)

* removed test for img thumbnail since during triage it was decided it is possible img will not be available, also commented test for payment status since there is bug created and we are waiting to fix it, also increased retries for mail fetching

* CR fixes - xit instead comment, get mail retry var declaration
This commit is contained in:
wojteknowacki 2023-05-30 14:06:54 +02:00 committed by GitHub
parent adf3342d5c
commit 2505012746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 25 deletions

View file

@ -13,7 +13,6 @@ import {
} from "../../support/api/requests";
import {
createOrder,
createReadyToFulfillOrder,
createShipping,
getDefaultTaxClass,
productsUtils,
@ -136,7 +135,8 @@ describe("Orders", () => {
},
);
it(
// TODO uncomment when bug: https://github.com/saleor/saleor/issues/12757 if fixed
xit(
"should be able to grant and send refund TC: 3902",
{ tags: ["@orders", "@allEnv", "@stable"] },
() => {

View file

@ -10,7 +10,6 @@ import { deleteCollectionsStartsWith } from "../../support/api/utils/catalog/col
import {
createNewProductWithNewDataAndDefaultChannel,
deleteProductsStartsWith,
iterateThroughThumbnails,
} from "../../support/api/utils/products/productsUtils";
describe("Tests for images", () => {
@ -70,24 +69,4 @@ describe("Tests for images", () => {
});
},
);
it(
"should create thumbnail url after entering image url",
{ tags: ["@products", "@allEnv", "@stable"] },
() => {
let failedRequests;
getFirstProducts(100)
.then(products => {
const productsWithThumbnails = products.filter(
product => product.node.thumbnail !== null,
);
failedRequests = iterateThroughThumbnails(productsWithThumbnails);
})
.then(() => {
if (failedRequests && failedRequests.length > 0) {
throw new Error(failedRequests.join("\n"));
}
});
},
);
});

View file

@ -119,8 +119,8 @@ export function getMailWithResetPasswordLink(email, subject, i = 0) {
export function getMailsForUser(email, i = 0) {
const serverStoredEmail = email.toLowerCase();
if (i > 5) {
const getMailRetries = 9;
if (i > getMailRetries) {
throw new Error(
`There is no email invitation for user ${serverStoredEmail}`,
);