-
-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP fix click search tour and fix javascript lint
- Loading branch information
Showing
2 changed files
with
73 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,78 +4,79 @@ | |
odoo.define('website_portal_contact.tour_test', function (require) { | ||
'use strict'; | ||
|
||
var tour = require('web_tour.tour'); | ||
var core = require('web.core'); | ||
var base = require('web_editor.base'); | ||
var steps = [{ | ||
var tour = require('web_tour.tour'); | ||
// var core = require('web.core'); | ||
var base = require('web_editor.base'); | ||
var steps = [ | ||
{ | ||
content: 'Click to add Guybrush', | ||
trigger: 'div.col-md-4.col-md-offset-4.mt8 > a', | ||
waitFor: 'div.col-md-4.col-md-offset-4.mt8 > a', | ||
position: 'top', | ||
run: 'click' | ||
run: 'click', | ||
}, | ||
{ | ||
content: 'Fill name "Guybrush Threpwood"', | ||
trigger: '#name', | ||
run: 'text Guybrush Threpwood' | ||
}, | ||
{ | ||
content: 'Fill phone', | ||
trigger: '#phone', | ||
run: 'text 987654321' | ||
}, | ||
{ | ||
content: 'Fill mobile', | ||
trigger: '#mobile', | ||
run: 'text 123456789' | ||
}, | ||
{ | ||
content: 'Fill email "[email protected]"', | ||
trigger: '#email', | ||
run: 'text [email protected]' | ||
}, | ||
{ | ||
content: 'Save new contact Guybrush', | ||
trigger: '#portal_contact > section > div > button', | ||
run: 'click', | ||
wait: 11500 | ||
}, | ||
{ | ||
content: 'Return to list', | ||
trigger: 'a[href="/my/contacts"]', | ||
run: 'click' | ||
}, | ||
{ | ||
content: 'Search for Guybrush', | ||
trigger: '#wrap > div > div.col-md-8 > div.row.mt16.mb16 > div:nth-child(1) > form > div > input', | ||
waitFor: '#wrap > div > div.col-md-8 > div.row.mt16.mb16 > div:nth-child(1) > form > div > input', | ||
position: 'top', | ||
run: 'text guybrush' | ||
}, | ||
{ | ||
content: 'Click search for Guybrush', | ||
position: 'top', | ||
trigger: '#wrap > div > div.col-md-8 > div.row.mt16.mb16 > div:nth-child(1) > form > div > span > button', | ||
run: 'click' | ||
}, | ||
{ | ||
content: 'Delete Guybrush', | ||
trigger: 'tr:contains("Guybrush") td.text-center > a', | ||
waitFor: 'tr:contains("Guybrush")', | ||
run: 'click' | ||
}, | ||
{ | ||
content: 'Return to list', | ||
trigger: 'a[href="/my/contacts"]', | ||
run: 'click' | ||
} | ||
]; | ||
{ | ||
content: 'Fill name "Guybrush Threpwood"', | ||
trigger: '#name', | ||
run: 'text Guybrush Threpwood', | ||
}, | ||
{ | ||
content: 'Fill phone', | ||
trigger: '#phone', | ||
run: 'text 987654321', | ||
}, | ||
{ | ||
content: 'Fill mobile', | ||
trigger: '#mobile', | ||
run: 'text 123456789', | ||
}, | ||
{ | ||
content: 'Fill email "[email protected]"', | ||
trigger: '#email', | ||
run: 'text [email protected]', | ||
}, | ||
{ | ||
content: 'Save new contact Guybrush', | ||
trigger: '#portal_contact > section > div > button', | ||
run: 'click', | ||
wait: 11500, | ||
}, | ||
{ | ||
content: 'Return to list', | ||
trigger: 'a[href="/my/contacts"]', | ||
run: 'click', | ||
}, | ||
{ | ||
content: 'Search for Guybrush', | ||
trigger: '#wrap > div.container.mb64 > div.row.mt16.mb16 > div.col-md-4.mt8 > form > div > input', | ||
waitFor: '#wrap > div.container.mb64 > div.row.mt16.mb16 > div.col-md-4.mt8 > form > div > input', | ||
position: 'top', | ||
run: 'text guybrush', | ||
}, | ||
{ | ||
content: 'Click search for Guybrush', | ||
position: 'top', | ||
trigger: '#wrap > div.container.mb64 > div.row.mt16.mb16 > div.col-md-4.mt8 > form > div > span > button', | ||
run: 'click', | ||
}, | ||
{ | ||
content: 'Delete Guybrush', | ||
trigger: 'tr:contains("Guybrush") td.text-center > a', | ||
waitFor: 'tr:contains("Guybrush")', | ||
run: 'click', | ||
}, | ||
{ | ||
content: 'Return to list', | ||
trigger: 'a[href="/my/contacts"]', | ||
run: 'click', | ||
} | ||
]; | ||
|
||
tour.register('test_website_portal_contact', { | ||
test: true, | ||
url: '/my/contacts', | ||
wait_for: base.ready(), | ||
'skip_enabled': true | ||
}, | ||
steps) | ||
tour.register('test_website_portal_contact', { | ||
test: true, | ||
url: '/my/contacts', | ||
wait_for: base.ready(), | ||
'skip_enabled': true | ||
}, | ||
steps); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters