[FIX]:website_rma:Changes in test cases

This commit is contained in:
Rutuba Chavda 2018-03-15 13:01:20 +05:30
parent 49eddebd0e
commit 8fa706c986
3 changed files with 1 additions and 44 deletions

View File

@ -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",

View File

@ -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"]',
},
]
);
});

View File

@ -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")