<commit_before>describe('adming configure node', function() {
  it('should configure node en internalization', function() {
    browser.setLocation('admin/content');
    element(by.model('GLTranslate.indirect.appLanguage')).element(by.xpath(".//*[text()='English']")).click();
    expect(element(by.model('admin.node.header_title_homepage')).clear().sendKeys('TEXT1_EN'));
    expect(element(by.model('admin.node.presentation')).clear().sendKeys('TEXT2_EN'));
    element(by.css('[data-ng-click="updateNode(admin.node)"]')).click();
  });

  it('should configure node it internalization', function() {
    browser.setLocation('admin/content');
    element(by.model('GLTranslate.indirect.appLanguage')).element(by.xpath(".//*[text()='Italiano']")).click();
    expect(element(by.model('admin.node.header_title_homepage')).clear().sendKeys('TEXT1_IT'));
    expect(element(by.model('admin.node.presentation')).clear().sendKeys('TEXT2_IT'));
    element(by.css('[data-ng-click="updateNode(admin.node)"]')).click();
  });

  it('should configure node advanced settings', function() {
    browser.setLocation('admin/advanced_settings');

    // enable all receivers to postpone and delete tips
    element(by.model('admin.node.can_postpone_expiration')).click();
    element(by.model('admin.node.can_delete_submission')).click();

    element(by.css('[data-ng-click="updateNode(admin.node)"]')).click();
  });
});<commit_msg>Fix tests switching the language back to english ad the end of the node configuration<commit_after>describe('adming configure node', function() {
  it('should configure node en internalization', function() {
    browser.setLocation('admin/content');
    element(by.model('GLTranslate.indirect.appLanguage')).element(by.xpath(".//*[text()='English']")).click();
    expect(element(by.model('admin.node.header_title_homepage')).clear().sendKeys('TEXT1_EN'));
    expect(element(by.model('admin.node.presentation')).clear().sendKeys('TEXT2_EN'));
    element(by.css('[data-ng-click="updateNode(admin.node)"]')).click();
  });

  it('should configure node it internalization', function() {
    browser.setLocation('admin/content');
    element(by.model('GLTranslate.indirect.appLanguage')).element(by.xpath(".//*[text()='Italiano']")).click();
    expect(element(by.model('admin.node.header_title_homepage')).clear().sendKeys('TEXT1_IT'));
    expect(element(by.model('admin.node.presentation')).clear().sendKeys('TEXT2_IT'));
    element(by.css('[data-ng-click="updateNode(admin.node)"]')).click();

    element(by.model('GLTranslate.indirect.appLanguage')).element(by.xpath(".//*[text()='English']")).click();
  });

  it('should configure node advanced settings', function() {
    browser.setLocation('admin/advanced_settings');

    // enable all receivers to postpone and delete tips
    element(by.model('admin.node.can_postpone_expiration')).click();
    element(by.model('admin.node.can_delete_submission')).click();

    element(by.css('[data-ng-click="updateNode(admin.node)"]')).click();
  });
});
{'fraction_non_alphanumeric': 0.20833333333333334, 'fraction_numerical': 0.0026455026455026454, 'mean_word_length': 6.134433962264151, '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': '1454199', 'n_tokens_mistral': 932, 'n_tokens_neox': 928, 'n_words': 103}