<commit_before>"use strict";

var shared = require("./shared.js");
var UserPages = require("./UserPages.js");

describe("user page", function() {
    it("displays the correct name for each user", function() {
        var usersListing = new UserPages.UsersListing().get();

        var annotatorPage = usersListing.getUserPage("annotator");
        expect(annotatorPage.getUserName()).toBe("annotator");

        var contributorPage = usersListing.getUserPage("contributor");
        expect(contributorPage.getUserName()).toBe("contributor");

        var reviewerPage = usersListing.getUserPage("reviewer");
        expect(reviewerPage.getUserName()).toBe("reviewer");
    });

});<commit_msg>Attempt at fixing user page acceptance tests<commit_after>"use strict";

var shared = require("./shared.js");
var UserPages = require("./UserPages.js");

describe("user page", function() {
    it("displays the correct name for each user", function() {
        var usersListing = new UserPages.UsersListing();

        usersListing.get();
        var annotatorPage = usersListing.getUserPage("annotator");
        expect(annotatorPage.getUserName()).toBe("annotator");

        usersListing.get();
        var contributorPage = usersListing.getUserPage("contributor");
        expect(contributorPage.getUserName()).toBe("contributor");

        usersListing.get();
        var reviewerPage = usersListing.getUserPage("reviewer");
        expect(reviewerPage.getUserName()).toBe("reviewer");
    });

});
{'fraction_non_alphanumeric': 0.14782608695652175, 'fraction_numerical': 0.0, 'mean_word_length': 4.02013422818792, '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': '1696541', 'n_tokens_mistral': 426, 'n_tokens_neox': 404, 'n_words': 79}