Skip to content

Commit ed46338

Browse files
joeltejedachrisjsimpson
authored andcommitted
#913 changing test subscriber user with a new valid test mail
1 parent f0aa190 commit ed46338

8 files changed

+27
-25
lines changed

tests/browser-automated-tests-playwright/tests/133_subscriber_order_plan_with_cooling_off.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
23
test.describe("order plan with cooling off:", () => {
34
test("@133@subscriber@Ordering plan with cooling off feature", async ({ page }) => {
45
console.log("Ordering plan with cooling off");
@@ -10,7 +11,7 @@ test.describe("order plan with cooling off:", () => {
1011
// Fill in order form
1112
await page.fill('#given_name', 'John');
1213
await page.fill('#family_name', 'Smith');
13-
await page.fill('#email', '[email protected]');
14+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
1415
await page.fill('#mobile', '07123456789');
1516
await page.fill('#address_line_one', '123 Short Road');
1617
await page.fill('#city', 'London');
@@ -62,7 +63,7 @@ test.describe("order plan with cooling off:", () => {
6263

6364
// Verify that subscriber is present in the list
6465
const subscriber_email_content = await page.textContent('.subscriber-email');
65-
expect(subscriber_email_content === '[email protected]');
66+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
6667

6768
// Verify that plan is attached to subscriber
6869
const subscriber_plan_title_content = await page.textContent('.subscription-title');

tests/browser-automated-tests-playwright/tests/264_subscriber_order_plan_with_choice_options_and_required_note.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2-
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
33
test("@264@subscriber@order plan with choice, option and required note", async ({ page }) => {
44
console.log("order plan with choice, option and required note");
55
// Buy item with subscription & upfront fee
@@ -16,7 +16,7 @@ test("@264@subscriber@order plan with choice, option and required note", async (
1616
// Fill in order form
1717
await page.fill('#given_name', 'John');
1818
await page.fill('#family_name', 'Smith');
19-
await page.fill('#email', '[email protected]');
19+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
2020
await page.fill('#mobile', '07123456789');
2121
await page.fill('#address_line_one', '123 Short Road');
2222
await page.fill('#city', 'London');
@@ -70,7 +70,7 @@ test("@264@subscriber@order plan with choice, option and required note", async (
7070

7171
// Verify that subscriber is present in the list
7272
const subscriber_email_content = await page.textContent('.subscriber-email');
73-
expect(subscriber_email_content === '[email protected]');
73+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
7474

7575
// Verify that plan is attached to subscriber
7676
const subscriber_plan_title_content = await page.textContent('.subscription-title');
@@ -98,4 +98,4 @@ test("@264@subscriber@order plan with choice, option and required note", async (
9898

9999
const content_upcoming_invoice_plan_sell_price = await page.textContent('.upcoming-invoices-plan-no-sell_price');
100100
expect(content_upcoming_invoice_plan_sell_price === '(No up-front cost)');
101-
});
101+
});

tests/browser-automated-tests-playwright/tests/293_subscriber_order_plan_with_only_recurring_charge.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2-
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
33
test.describe("order plan with only recurring charge test:", () => {
44
test("@293@subscriber@Ordering recurring plan", async ({ page }) => {
55
console.log("Ordering plan with only recurring charge...");
@@ -10,7 +10,7 @@ test.describe("order plan with only recurring charge test:", () => {
1010
// Fill in order form
1111
await page.fill('#given_name', 'John');
1212
await page.fill('#family_name', 'Smith');
13-
await page.fill('#email', '[email protected]');
13+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
1414
await page.fill('#mobile', '07123456789');
1515
await page.fill('#address_line_one', '123 Short Road');
1616
await page.fill('#city', 'London');
@@ -62,7 +62,7 @@ test.describe("order plan with only recurring charge test:", () => {
6262

6363
// Verify that subscriber is present in the list
6464
const subscriber_email_content = await page.textContent('.subscriber-email');
65-
expect(subscriber_email_content === '[email protected]');
65+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
6666

6767
// Verify that plan is attached to subscriber
6868
const subscriber_plan_title_content = await page.textContent('.subscription-title');

tests/browser-automated-tests-playwright/tests/293_subscriber_order_plan_with_recurring_and_upfront_charge.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2-
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
33
test.describe("order plan with recurring and upfront charge test:", () => {
44
test("@293@subscriber@Ordering recurring and upfront plan", async ({ page }) => {
55
console.log("Ordering Plan with subscription and upfront charge");
@@ -10,7 +10,7 @@ test.describe("order plan with recurring and upfront charge test:", () => {
1010
// Fill in order form
1111
await page.fill('#given_name', 'John');
1212
await page.fill('#family_name', 'Smith');
13-
await page.fill('#email', '[email protected]');
13+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
1414
await page.fill('#mobile', '07123456789');
1515
await page.fill('#address_line_one', '123 Short Road');
1616
await page.fill('#city', 'London');
@@ -62,7 +62,7 @@ test.describe("order plan with recurring and upfront charge test:", () => {
6262

6363
// Verify that subscriber is present in the list
6464
const subscriber_email_content = await page.textContent('.subscriber-email');
65-
expect(subscriber_email_content === '[email protected]');
65+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
6666

6767
// Verify that plan is attached to subscriber
6868
const subscriber_subscription_title_content = await page.textContent('.subscription-title');

tests/browser-automated-tests-playwright/tests/463_subscriber_ordering_plan_with_VAT.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2-
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
33
test("@463@subscriber@Ordering plan with VAT", async ({ page }) => {
44
console.log("Ordering plan with only recurring charge + VAT...");
55
// Buy item with subscription & upfront fee
@@ -9,7 +9,7 @@ test("@463@subscriber@Ordering plan with VAT", async ({ page }) => {
99
// Fill in order form
1010
await page.fill('#given_name', 'Paul');
1111
await page.fill('#family_name', 'Man');
12-
await page.fill('#email', '[email protected]');
12+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
1313
await page.fill('#mobile', '07123456789');
1414
await page.fill('#address_line_one', '123 Short Road');
1515
await page.fill('#city', 'London');
@@ -65,7 +65,7 @@ test("@463@subscriber@Ordering plan with VAT", async ({ page }) => {
6565

6666
// Verify that subscriber is present in the list
6767
const subscriber_email_content = await page.textContent('.subscriber-email');
68-
expect(subscriber_email_content === '[email protected]');
68+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
6969

7070
// Verify that plan is attached to subscriber
7171
const subscriber_plan_title_content = await page.textContent('.subscription-title');

tests/browser-automated-tests-playwright/tests/475_subscriber_order_plan_with_free_trial.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
23
test.describe("order plan with free-trial:", () => {
34
test("@475@subscriber@Ordering plan with free-trial feature", async ({ page }) => {
45
console.log("Ordering Plan with free trial");
@@ -10,7 +11,7 @@ test.describe("order plan with free-trial:", () => {
1011
// Fill in order form
1112
await page.fill('#given_name', 'John');
1213
await page.fill('#family_name', 'Smith');
13-
await page.fill('#email', '[email protected]');
14+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
1415
await page.fill('#mobile', '07123456789');
1516
await page.fill('#address_line_one', '123 Short Road');
1617
await page.fill('#city', 'London');
@@ -61,7 +62,7 @@ test.describe("order plan with free-trial:", () => {
6162

6263
// Verify that subscriber is present in the list
6364
const subscriber_email_content = await page.textContent('.subscriber-email');
64-
expect(subscriber_email_content === '[email protected]');
65+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
6566

6667
// Verify that plan is attached to subscriber
6768
const subscriber_plan_title_content = await page.textContent('.subscription-title');
@@ -87,4 +88,4 @@ test.describe("order plan with free-trial:", () => {
8788
const content_upcoming_invoice_plan_sell_price = await page.textContent('.upcoming-invoices-plan-no-sell_price');
8889
expect(content_upcoming_invoice_plan_sell_price === '(No up-front cost)');
8990
});
90-
});
91+
});

tests/browser-automated-tests-playwright/tests/516_subscriber_order_plan_with_cancel_at.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2-
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
33
test.describe("order plan with cancel at:", () => {
44
test("@516@subscriber@Ordering plan with cancel at feature", async ({ page }) => {
55
console.log("Ordering plan with cancel_at");
@@ -11,7 +11,7 @@ test.describe("order plan with cancel at:", () => {
1111
// Fill in order form
1212
await page.fill('#given_name', 'John');
1313
await page.fill('#family_name', 'Smith');
14-
await page.fill('#email', '[email protected]');
14+
await page.fill('#email', SUBSCRIBER_EMAIL_USER);
1515
await page.fill('#mobile', '07123456789');
1616
await page.fill('#address_line_one', '123 Short Road');
1717
await page.fill('#city', 'London');
@@ -63,7 +63,7 @@ test.describe("order plan with cancel at:", () => {
6363

6464
// Verify that subscriber is present in the list
6565
const subscriber_email_content = await page.textContent('.subscriber-email');
66-
expect(subscriber_email_content === '[email protected]');
66+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
6767

6868
// Verify that plan is attached to subscriber
6969
const subscriber_plan_title_content = await page.textContent('.subscription-title');
@@ -93,4 +93,4 @@ test.describe("order plan with cancel at:", () => {
9393
const subscriber_plan_title_upcoming_payment = await page.textContent('text="cancel at plan"');
9494
expect(subscriber_plan_title_upcoming_payment === "Plan: cancel at plan");
9595
});
96-
});
96+
});

tests/browser-automated-tests-playwright/tests/shop_owner_pause_resume_and_cancel_subscriptions.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { test, expect } = require('@playwright/test');
2-
2+
const SUBSCRIBER_EMAIL_USER = process.env.SUBSCRIBER_EMAIL_USER;
33
//Subscribie tests
44
test.describe("Pause, Resume and Cancel Subscription:", () => {
55
test("@147@shop-owner@Pause and Resume transaction", async ({ page }) => {
@@ -11,7 +11,7 @@ test.describe("Pause, Resume and Cancel Subscription:", () => {
1111

1212
// Verify that subscriber is present in the list
1313
const subscriber_email_content = await page.textContent('.subscriber-email');
14-
expect(subscriber_email_content === '[email protected]');
14+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
1515

1616
const subscriber_subscription_title_content = await page.textContent('.subscription-title');
1717
expect(subscriber_subscription_title_content === 'Hair Gel');
@@ -49,7 +49,7 @@ test.describe("Pause, Resume and Cancel Subscription:", () => {
4949

5050
// Verify that subscriber is present in the list
5151
const subscriber_email_content = await page.textContent('.subscriber-email');
52-
expect(subscriber_email_content === '[email protected]');
52+
expect(subscriber_email_content === SUBSCRIBER_EMAIL_USER);
5353

5454
const subscriber_subscription_title_content = await page.textContent('.subscription-title');
5555
expect(subscriber_subscription_title_content === 'Hair Gel');

0 commit comments

Comments
 (0)