From b723e05b2f54b94553eec68371e90db467e8c722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20Szcz=C4=99ch?= <30683248+szczecha@users.noreply.github.com> Date: Mon, 16 Jan 2023 15:05:07 +0100 Subject: [PATCH] Change tags in tests from stagedOnly to allEnv (#2985) --- cypress/e2e/configuration/plugins/adyen.js | 12 ++++++------ cypress/e2e/configuration/plugins/plugins.js | 4 ++-- cypress/e2e/configuration/plugins/stripe.js | 8 ++++---- cypress/e2e/staffMembers.js | 18 +++++++++--------- cypress/e2e/translations.js | 4 ++-- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/cypress/e2e/configuration/plugins/adyen.js b/cypress/e2e/configuration/plugins/adyen.js index d8c715da0..c5f175d6d 100644 --- a/cypress/e2e/configuration/plugins/adyen.js +++ b/cypress/e2e/configuration/plugins/adyen.js @@ -131,7 +131,7 @@ describe("Adyen payments", () => { it( "should purchase products with simple card", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const simpleCard = cardData; simpleCard.encryptedCardNumber = @@ -149,7 +149,7 @@ describe("Adyen payments", () => { it( "should purchase product with 3D secure 2 Auth", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const threeDSecureCard = cardData; threeDSecureCard.encryptedCardNumber = @@ -167,7 +167,7 @@ describe("Adyen payments", () => { it( "should purchase product with 3D secure 1 Auth", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const threeDSecureCardOneAuth = cardData; threeDSecureCardOneAuth.encryptedCardNumber = @@ -186,7 +186,7 @@ describe("Adyen payments", () => { it( "should fail with unknown security number", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const simpleCard = cardData; simpleCard.encryptedCardNumber = @@ -202,7 +202,7 @@ describe("Adyen payments", () => { it( "should fail with timeout in 3D authorization", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const errorCard = cardData; errorCard.encryptedCardNumber = @@ -216,7 +216,7 @@ describe("Adyen payments", () => { it( "should fail with closed account", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const closeAccount = cardData; closeAccount.encryptedCardNumber = diff --git a/cypress/e2e/configuration/plugins/plugins.js b/cypress/e2e/configuration/plugins/plugins.js index 5615ec77d..761b9fa0a 100644 --- a/cypress/e2e/configuration/plugins/plugins.js +++ b/cypress/e2e/configuration/plugins/plugins.js @@ -51,7 +51,7 @@ describe("As an admin I want to manage plugins", () => { it( "should change user email. TC: SALEOR_3601", - { tags: ["@plugins", "@stagedOnly", "@stable"] }, + { tags: ["@plugins", "@allEnv", "@stable"] }, () => { const customerEmail = `${randomName}@example.com`; @@ -77,7 +77,7 @@ describe("As an admin I want to manage plugins", () => { it( "should change admin email plugin. TC: SALEOR_3602", - { tags: ["@plugins", "@stagedOnly", "@stable"] }, + { tags: ["@plugins", "@allEnv", "@stable"] }, () => { const adminName = `Admin${randomName}`; diff --git a/cypress/e2e/configuration/plugins/stripe.js b/cypress/e2e/configuration/plugins/stripe.js index 051bb43ea..5ee8e6ac4 100644 --- a/cypress/e2e/configuration/plugins/stripe.js +++ b/cypress/e2e/configuration/plugins/stripe.js @@ -87,7 +87,7 @@ describe("Stripe payments", () => { it( "should purchase products with simple card", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const simpleCard = cardData; simpleCard.cardNumber = paymentCards.simpleCardNumber; @@ -110,7 +110,7 @@ describe("Stripe payments", () => { it( "should not purchase products with card with insufficient funds", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const simpleCard = cardData; simpleCard.cardNumber = paymentCards.insufficientFundsCard; @@ -126,7 +126,7 @@ describe("Stripe payments", () => { it( "should purchase products with 3D secure card", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const threeDSecureCard = cardData; threeDSecureCard.cardNumber = paymentCards.threeDSecureAuthCard; @@ -152,7 +152,7 @@ describe("Stripe payments", () => { it( "should not purchase product when 3D secure not pass", - { tags: ["@payments", "@stagedOnly"] }, + { tags: ["@payments", "@allEnv"] }, () => { const threeDSecureCard = cardData; threeDSecureCard.cardNumber = paymentCards.threeDSecureAuthCard; diff --git a/cypress/e2e/staffMembers.js b/cypress/e2e/staffMembers.js index 6891e8f6b..e072d42ab 100644 --- a/cypress/e2e/staffMembers.js +++ b/cypress/e2e/staffMembers.js @@ -62,7 +62,7 @@ describe("Staff members", () => { it( "should be able to invite staff user. TC: SALEOR_3501", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const firstName = faker.name.firstName(); const emailInvite = `${startsWith}${firstName}@example.com`; @@ -82,7 +82,7 @@ describe("Staff members", () => { it( "should deactivate user. TC: SALEOR_3502", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { updateStaffMember({ userId: user.id, isActive: true }); updateUserActiveFlag(user.id); @@ -101,7 +101,7 @@ describe("Staff members", () => { it( "should activate user. TC: SALEOR_3503", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const serverStoredEmail = email.toLowerCase(); @@ -116,7 +116,7 @@ describe("Staff members", () => { it( "should remove user permissions. TC: SALEOR_3504", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const serverStoredEmail = email.toLowerCase(); @@ -143,7 +143,7 @@ describe("Staff members", () => { it( "should reset password. TC: SALEOR_3505", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const newPassword = faker.random.alphaNumeric(8); updatePlugin( @@ -179,7 +179,7 @@ describe("Staff members", () => { it( "should not be able to create staff member with not unique email. TC: SALEOR_3508", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const firstName = faker.name.firstName(); const emailInvite = TEST_ADMIN_USER.email; @@ -194,7 +194,7 @@ describe("Staff members", () => { it( "should not be able to update staff member with not unique email. TC: SALEOR_3509", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { cy.visit(urlList.staffMembers) .expectSkeletonIsVisible() @@ -222,7 +222,7 @@ describe("Staff members", () => { // Test blocked by https://github.com/saleor/saleor-dashboard/issues/2847 it.skip( "should update staff member name and email. TC: SALEOR_3507", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const newLastName = faker.name.lastName(); const newEmail = `${startsWith}${newLastName}@example.com`; @@ -273,7 +273,7 @@ describe("Staff members", () => { it( "should create new user and successfully change password. TC: SALEOR_3510", - { tags: ["@staffMembers", "@stagedOnly", "@allenv"] }, + { tags: ["@staffMembers", "@allEnv"] }, () => { const newPass = "newTestPass"; const newLastName = faker.name.lastName(); diff --git a/cypress/e2e/translations.js b/cypress/e2e/translations.js index 11ac9faf7..4a8cc5bb6 100644 --- a/cypress/e2e/translations.js +++ b/cypress/e2e/translations.js @@ -32,7 +32,7 @@ describe("As an admin I want to manage translations", () => { it( "should be able to create new translation. TC:SALEOR_1701", - { tags: ["@translations", "@stagedOnly", "@stable"] }, + { tags: ["@translations", "@allEnv", "@stable"] }, () => { const translatedName = `TranslatedName${randomNumber}`; const translatedDescription = `TranslatedDescription${randomNumber}`; @@ -58,7 +58,7 @@ describe("As an admin I want to manage translations", () => { it( "should be able to update translation. TC:SALEOR_1702", - { tags: ["@translations", "@stagedOnly", "@stable"] }, + { tags: ["@translations", "@allEnv", "@stable"] }, () => { const startWithUpdate = `Translations_Update_${randomNumber}`; const seoTitleUpdate = `${startWithUpdate}_seoTitle`;