[FIX]:website_rma:Changes in test cases
This commit is contained in:
parent
49eddebd0e
commit
8fa706c986
@ -20,7 +20,7 @@ tour.register('web_rma', {
|
||||
},
|
||||
{
|
||||
content: "click on return button on order line",
|
||||
trigger: '#order_line_return a:contains("Return")',
|
||||
trigger: '#order_line_return a:contains("Return/Replace")',
|
||||
},
|
||||
{
|
||||
content: "click on return button",
|
||||
|
@ -1,37 +0,0 @@
|
||||
flectra.define('website_rma.rma_tour_demo', function (require) {
|
||||
'use strict';
|
||||
|
||||
var tour = require("web_tour.tour");
|
||||
var base = require("web_editor.base");
|
||||
|
||||
tour.register('web_rma_demo', {
|
||||
test: true,
|
||||
url: '/my/home',
|
||||
wait_for: base.ready()
|
||||
},
|
||||
[
|
||||
{
|
||||
content: "sales order list",
|
||||
trigger: 'a[href="/my/orders"]',
|
||||
},
|
||||
{
|
||||
content: "select sale order",
|
||||
trigger: 'a:contains("SO036")',
|
||||
},
|
||||
{
|
||||
content: "click on return button on order line",
|
||||
trigger: '#order_line_return a:contains("Return")',
|
||||
},
|
||||
{
|
||||
content: "click on return button",
|
||||
trigger: 'button[id="prod_return"]',
|
||||
},
|
||||
{
|
||||
content: "create rma request",
|
||||
trigger: 'form[action^="/return/request"]',
|
||||
},
|
||||
|
||||
]
|
||||
);
|
||||
|
||||
});
|
@ -13,9 +13,3 @@ class TestUi(flectra.tests.HttpCase):
|
||||
"'web_tour.tour'].run('web_rma')",
|
||||
"flectra.__DEBUG__.services['web_tour.tour'"
|
||||
"].tours.web_rma.ready", login="admin")
|
||||
|
||||
def test_02_web_rma(self):
|
||||
self.phantom_js("/my/home", "flectra.__DEBUG__.services["
|
||||
"'web_tour.tour'].run('web_rma_demo')",
|
||||
"flectra.__DEBUG__.services['web_tour.tour'"
|
||||
"].tours.web_rma_demo.ready", login="demo")
|
||||
|
Loading…
Reference in New Issue
Block a user