<commit_before>import {authenticateSession, invalidateSession} from 'ember-simple-auth/test-support';
import {blur, click, currentURL, fillIn, find, findAll} from '@ember/test-helpers';
import {enableLabsFlag} from '../../helpers/labs-flag';
import {expect} from 'chai';
import {setupApplicationTest} from 'ember-mocha';
import {setupMirage} from 'ember-cli-mirage/test-support';
import {visit} from '../../helpers/visit';

describe('Acceptance: Settings - Membership', function () {
    const hooks = setupApplicationTest();
    setupMirage(hooks);

    beforeEach(function () {
        enableLabsFlag(this.server, 'multipleProducts');
        enableLabsFlag(this.server, 'tierWelcomePages');
        enableLabsFlag(this.server, 'tierName');
    });

    beforeEach(async function () {
        this.server.loadFixtures('configs');
        this.server.loadFixtures('products');

        this.server.db.configs.update(1, {blogUrl: 'http://localhost:2368'})

        const role = this.server.create('role', {name: 'Owner'});
        this.server.create('user', {roles: [role]});

        return await authenticateSession();
    });

    describe('permissions', function () {
        let visitAs;

        before(function () {
            visitAs = async (roleName) => {
                const role = this.server.create('role', {name: roleName});
                this.server.create('user', {roles: [role]});
                await authenticateSession();
                await visit('/settings/members');
            };
        });

        beforeEach(async function () {<commit_msg>Fixed linter error<commit_after>import {authenticateSession, invalidateSession} from 'ember-simple-auth/test-support';
import {blur, click, currentURL, fillIn, find, findAll} from '@ember/test-helpers';
import {enableLabsFlag} from '../../helpers/labs-flag';
import {expect} from 'chai';
import {setupApplicationTest} from 'ember-mocha';
import {setupMirage} from 'ember-cli-mirage/test-support';
import {visit} from '../../helpers/visit';

describe('Acceptance: Settings - Membership', function () {
    const hooks = setupApplicationTest();
    setupMirage(hooks);

    beforeEach(function () {
        enableLabsFlag(this.server, 'multipleProducts');
        enableLabsFlag(this.server, 'tierWelcomePages');
        enableLabsFlag(this.server, 'tierName');
    });

    beforeEach(async function () {
        this.server.loadFixtures('configs');
        this.server.loadFixtures('products');

        this.server.db.configs.update(1, {blogUrl: 'http://localhost:2368'});

        const role = this.server.create('role', {name: 'Owner'});
        this.server.create('user', {roles: [role]});

        return await authenticateSession();
    });

    describe('permissions', function () {
        let visitAs;

        before(function () {
            visitAs = async (roleName) => {
                const role = this.server.create('role', {name: roleName});
                this.server.create('user', {roles: [role]});
                await authenticateSession();
                await visit('/settings/members');
            };
        });

        beforeEach(async function () {
{'fraction_non_alphanumeric': 0.15484483850538316, 'fraction_numerical': 0.0031665611146295125, 'mean_word_length': 3.0344827586206895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5775366', 'n_tokens_mistral': 914, 'n_tokens_neox': 881, 'n_words': 180}