<commit_before>(function () {
    'use strict';

    var website = openerp.website;

    website.Tour.ShopTest = website.Tour.extend({
        id: 'shop_buy_product',
        name: "Try to buy products",
        path: '/shop',
        testPath: '/shop',
        init: function () {
            var self = this;
            self.steps = [
                {
                    title:     "select ipod",
                    element:   '.oe_product_cart a:contains("iPod")',
                },
                {
                    title:     "select ipod 32Go",
                    element:   'input[name="product_id"]:not([checked])',
                },
                {
                    title:     "click on add to cart",
                    waitFor:   'input[name="product_id"]:eq(1)[checked]',
                    element:   'form[action="/shop/add_cart/"] button',
                },
                {
                    title:     "add suggested",
                    element:   'form[action="/shop/add_cart/"] button.btn-link:contains("Add to Cart")',
                },
                {
                    title:     "add one more iPod",
                    waitFor:   '.my_cart_quantity:contains(2)',
                    element:   '#mycart_products tr:contains("iPod: 32 Gb") a.js_add_cart_json:eq(1)',
                },
                {
                    title:     "remove Headphones",
                    waitFor:   '#mycart_products tr:contains("iPod: 32 Gb") input.js_quantity[value=2]',
                    element:   '#mycart_products tr:contains("Apple In-Ear Headphones") a.js_add_cart_json:first',
                },
                {
                    title:     "set one iPod",
                    waitNot:   '#mycart_products tr:contains("Apple In-Ear Headphones")',
                    element:   '#mycart_products input.js_quantity',
                    sampleText: '1',
                },
                {
                    title:     "go to checkout",<commit_msg>[FIX] website: test tour shop_buy_product<commit_after>(function () {
    'use strict';

    var website = openerp.website;

    website.Tour.ShopTest = website.Tour.extend({
        id: 'shop_buy_product',
        name: "Try to buy products",
        path: '/shop',
        testPath: '/shop',
        init: function () {
            var self = this;
            self.steps = [
                {
                    title:     "select ipod",
                    element:   '.oe_product_cart a:contains("iPod")',
                },
                {
                    title:     "select ipod 32Go",
                    element:   'input[name="product_id"]:not([checked])',
                },
                {
                    title:     "click on add to cart",
                    waitFor:   'input[name="product_id"]:eq(1)[checked]',
                    element:   'form[action="/shop/add_cart/"] .btn',
                },
                {
                    title:     "add suggested",
                    element:   'form[action="/shop/add_cart/"] button.btn-link:contains("Add to Cart")',
                },
                {
                    title:     "add one more iPod",
                    waitFor:   '.my_cart_quantity:contains(2)',
                    element:   '#mycart_products tr:contains("iPod: 32 Gb") a.js_add_cart_json:eq(1)',
                },
                {
                    title:     "remove Headphones",
                    waitFor:   '#mycart_products tr:contains("iPod: 32 Gb") input.js_quantity[value=2]',
                    element:   '#mycart_products tr:contains("Apple In-Ear Headphones") a.js_add_cart_json:first',
                },
                {
                    title:     "set one iPod",
                    waitNot:   '#mycart_products tr:contains("Apple In-Ear Headphones")',
                    element:   '#mycart_products input.js_quantity',
                    sampleText: '1',
                },
                {
                    title:     "go to checkout",
{'fraction_non_alphanumeric': 0.12097174020823004, 'fraction_numerical': 0.005453644025780862, 'mean_word_length': 1.1834415584415585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5708735', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1033, 'n_words': 207}