<commit_before>*** Settings ***

Documentation    Tests for saving and loading layouts
Resource         common_resources.txt
Test Setup       Open Browser And Log In
Test Teardown    Close Browser


*** Testcases ***
Save Non-Default Layout
  Click Element             id=toggle-left-a
  Click Button              id=provenance
  Click Button              id=status
  Click Button              id=science
  Wait Until Page Contains Element  id=provenance_window
  Click Button              id=save-layout
  Input Text                id=layout-name  c
  Click Button              id=save-btn
  Alert Should Be Present   Layout saved

Load Layout
  Click Element  id=toggle-left-a
  Click Button   id=load-layout
  Page Should Contain  Select Layout:
  Click Element  select-layout
  Click Element  id=layout-c
  Click Element  id=load-button
  Wait Until Page Contains Element  id=provenance_window
  Page Should Contain Element  id=provenance_window
  Page Should Contain Element  id=status_window 
  Page Should Contain Element  id=science_window

Save Default Layout
  Click Element             id=toggle-left-a
  Click Button              id=save-layout
  Input Text                id=layout-name  new_default_layout
  Click Element             id=default
  Click Button              id=save-btn
  Alert Should Be Present   Layout saved<commit_msg>Hopefully fix scrolling issue for travis<commit_after>*** Settings ***

Documentation    Tests for saving and loading layouts
Resource         common_resources.txt
Test Setup       Open Browser And Log In
Test Teardown    Close Browser


*** Testcases ***
Save Non-Default Layout
  Click Element             id=toggle-left-a
  Click Element             id=provenance
  Click Element             id=status
  Click Element             id=science
  Wait Until Page Contains Element  id=provenance_window
  Click Element             id=save-layout
  Input Text                id=layout-name  c
  Click Element             id=save-btn
  Alert Should Be Present   Layout saved

Load Layout
  Click Element  id=toggle-left-a
  Click Element  id=load-layout
  Page Should Contain  Select Layout:
  Click Element  select-layout
  Click Element  id=layout-c
  Click Element  id=load-button
  Wait Until Page Contains Element  id=provenance_window
  Page Should Contain Element  id=provenance_window
  Page Should Contain Element  id=status_window 
  Page Should Contain Element  id=science_window

Save Default Layout
  Click Element             id=toggle-left-a
  Click Element             id=save-layout
  Input Text                id=layout-name  new_default_layout
  Click Element             id=default
  Click Element             id=save-btn
  Alert Should Be Present   Layout saved
{'fraction_non_alphanumeric': 0.04030780505679736, 'fraction_numerical': 0.0, 'mean_word_length': 2.42964824120603, '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': '527063', 'n_tokens_mistral': 718, 'n_tokens_neox': 697, 'n_words': 260}