<commit_before>// e2e tests
// TODO: replace cpu resources/ memory resources/ disk resources svg test when charts are back online

casper.test.begin('Node Report Page is loading properly', 62, function suite(test) {
    casper.start('http://10.10.20.201/report/node/rsrc-01', function() {
        //title
        test.assertTitle('goldstone', 'Page title is "goldstone"');

        // navbar
        test.assertExists('.navbar-brand > img', 'Favicon should load');
        test.assertExists('div.navbar', 'Navbar should load');
        test.assertSelectorHasText('div.navbar', 'Discover');
        test.assertSelectorHasText('div.navbar', 'Report');
        test.assertSelectorHasText('div.navbar', 'Logging');

        // page h1
        test.assertSelectorHasText('div#node-report-r1-c1 h1', 'rsrc-01');

        // Service Status graph loads
        test.assertSelectorHasText('div #service-status-title-bar', 'Service Status Report');
        test.assertExists('div#node-report-r2', 'Service Status Section should load');<commit_msg>updates tests.<commit_after>// e2e tests
// TODO: replace cpu resources/ memory resources/ disk resources svg test when charts are back online

casper.test.begin('Node Report Page is loading properly', 62, function suite(test) {
    casper.start('http://localhost:8000/report/node/ctrl-01', function() {
        //title
        test.assertTitle('goldstone', 'Page title is "goldstone"');

        // navbar
        test.assertExists('.navbar-brand > img', 'Favicon should load');
        test.assertExists('div.navbar', 'Navbar should load');
        test.assertSelectorHasText('div.navbar', 'Discover');
        test.assertSelectorHasText('div.navbar', 'Report');
        test.assertSelectorHasText('div.navbar', 'Logging');

        // page h1
        test.assertSelectorHasText('div#node-report-r1-c1 h1', 'ctrl-01');

        // Service Status graph loads
        test.assertSelectorHasText('div #service-status-title-bar', 'Service Status Report');
        test.assertExists('div#node-report-r2', 'Service Status Section should load');
{'fraction_non_alphanumeric': 0.14203177660086663, 'fraction_numerical': 0.01781415503129514, 'mean_word_length': 3.3472803347280333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7018108', 'n_tokens_mistral': 611, 'n_tokens_neox': 578, 'n_words': 142}