Untitled

From Rude Dolphin, 10 Months ago, written in Plain Text, viewed 27 times.
URL https://paste.lug.ro/view/9cdc40a8 Embed
Download Paste or View Raw
  1. it('I should be able to create a new invoice and edit it', function() {
  2.         When.I_go_to_the_invoicing_list_page();
  3.         Then.the_new_invoice_button_should_appear();
  4.         When.I_click_the_new_invoice_button();
  5.         Then.the_invoicing_form_should_appear();
  6.         And.I_should_be_redirected_to_the_new_invoice_page();
  7.         And.the_products_panel_should_not_be_present();
  8.         And.the_service_orders_list_should_not_be_present();
  9.         When.I_change_the_fuel_supplier();
  10.         And.I_change_the_invoice_date();
  11.  
  12.         When.I_fill_in_the_invoicing_form_with_the_following({
  13.             range: 'This Month',
  14.             fuelSupplier: 'Total',
  15.             date: 'today',
  16.             reference: 1,
  17.             products: 'Refuelling charge',
  18.         });
  19.         Then.the_due_date_should_be_filled();
  20.         And.I_click_the_generate_invoice();
  21.         Then.the_save_invoice_button_should_be_enabled();
  22.         And.the_products_panel_should_be_present();
  23.         And.the_service_orders_list_should_be_present();
  24.         Then.the_service_order_list_should_be_populated_with(10);
  25.         When.I_to_to_invoice_pagination_page('2');
  26.         Then.the_save_invoice_button_should_be_enabled();
  27.         And.the_service_order_list_should_be_populated_with(10);
  28.         And.I_wait_for_all_ajax_requests_to_finish();
  29.         When.I_click_the_save_dropdown_button();
  30.         And.I_save_the_invoice_as_draft();
  31.         Then.I_should_be_redirected_to_the_invoice_index_page();
  32.         And.I_should_see_the_create_flash_message();
  33.         And.I_should_see_the_edit_button_for_invoice(1);
  34.         When.I_click_the_edit_button_for_invoice(1);
  35.         Then.I_should_be_redirected_to_the_invoice_edit_page(1);
  36.         Then.the_total_price_should_not_be_empty();
  37.         When.I_click_the_save_dropdown_button();
  38.         And.I_wait_for_all_ajax_requests_to_finish();
  39.         And.I_save_the_invoice_as_final();
  40.         Then.I_should_be_redirected_to_the_invoice_index_page();
  41.         And.I_should_see_the_update_flash_message();
  42.         And.I_should_see_the_price_for_the_invoice(1);
  43.         And.I_should_not_see_the_edit_button_for_invoice(1);
  44.         When.I_click_the_download_button_for_invoice(1);
  45.         Then.I_should_see_the_invoice_export_modal();
  46.     });

Reply to "Untitled"

Here you can reply to the paste above

captcha