[REM] website_sale*: update test from checkout with public user
Now we drop the test where a user is created via the checkout form (public user). These tests should be rewrite in new api later an test flows for a new customer.
This commit is contained in:
@@ -69,18 +69,7 @@ base.ready().done(function () {
|
||||
},
|
||||
{
|
||||
title: "Complete the checkout",
|
||||
element: 'form[action="/shop/confirm_order"] .btn:contains("Confirm")',
|
||||
onload: function () {
|
||||
if ($("input[name='name']").val() === "")
|
||||
$("input[name='name']").val("website_sale-test-shoptest");
|
||||
if ($("input[name='email']").val() === "")
|
||||
$("input[name='email']").val("website_event_sale_test_shoptest@websiteeventsaletest.odoo.com");
|
||||
$("input[name='phone']").val("123");
|
||||
$("input[name='street2']").val("123");
|
||||
$("input[name='city']").val("123");
|
||||
$("input[name='zip']").val("123");
|
||||
$("select[name='country_id']").val("21");
|
||||
},
|
||||
element: 'a[href="/shop/confirm_order"]:contains("Confirm")',
|
||||
},
|
||||
{
|
||||
title: "Check that the subtotal is 5,500.00",
|
||||
|
||||
@@ -10,5 +10,4 @@ class TestUi(odoo.tests.HttpCase):
|
||||
def test_demo(self):
|
||||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('event_buy_tickets', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.event_buy_tickets", login="demo")
|
||||
|
||||
def test_public(self):
|
||||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('event_buy_tickets', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.event_buy_tickets")
|
||||
# TO DO - add public test with new address when convert to web.tour format.
|
||||
|
||||
@@ -57,27 +57,9 @@ Tour.register({
|
||||
element: 'a[href="/shop/checkout"]',
|
||||
},
|
||||
{
|
||||
title: "test with input error",
|
||||
element: 'form[action="/shop/confirm_order"] .btn:contains("Confirm")',
|
||||
onload: function (tour) {
|
||||
$("input[name='phone']").val("");
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "test without input error",
|
||||
waitFor: 'form[action="/shop/confirm_order"] .has-error',
|
||||
element: 'form[action="/shop/confirm_order"] .btn:contains("Confirm")',
|
||||
onload: function (tour) {
|
||||
if ($("input[name='name']").val() === "")
|
||||
$("input[name='name']").val("website_sale-test-shoptest");
|
||||
if ($("input[name='email']").val() === "")
|
||||
$("input[name='email']").val("website_sale_test_shoptest@websitesaletest.odoo.com");
|
||||
$("input[name='phone']").val("123");
|
||||
$("input[name='street2']").val("123");
|
||||
$("input[name='city']").val("123");
|
||||
$("input[name='zip']").val("123");
|
||||
$("select[name='country_id']").val("21");
|
||||
},
|
||||
title: "Confirm checkout",
|
||||
waitFor: "div.all_shipping .panel",
|
||||
element: 'a[href="/shop/confirm_order"]',
|
||||
},
|
||||
{
|
||||
title: "select payment",
|
||||
|
||||
@@ -15,5 +15,4 @@ class TestUi(odoo.tests.HttpCase):
|
||||
def test_03_demo_checkout(self):
|
||||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('shop_buy_product', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.shop_buy_product", login="demo")
|
||||
|
||||
def test_04_public_checkout(self):
|
||||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('shop_buy_product', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.shop_buy_product")
|
||||
# TO DO - add public test with new address when convert to web.tour format.
|
||||
|
||||
Reference in New Issue
Block a user