<commit_before>describe('<NAME>', function() {
    integration(function() {
        describe('<NAME>i\'s ability', function() {
            beforeEach(function() {
                this.setupTest({
                    phase: 'conflict',
                    player1: {
                        fate: 3,
                        inPlay: ['moto-chagatai', 'shrine-maiden'],
                        hand:[]
                    },
                    player2: {
                        inPlay: ['steward-of-law'],
                        hand: ['for-shame', 'talisman-of-the-sun'],
                        provinces: ['public-forum', 'endless-plains', 'shameful-display']
                    }
                });

                this.chagatai = this.player1.findCardByName('moto-chagatai');
                this.shrineMaiden = this.player1.findCardByName('shrine-maiden');
                this.steward = this.player2.findCardByName('steward-of-law');

                this.endlessPlains = this.player2.findCardByName('endless-plains');
                this.publicForum = this.player2.findCardByName('public-forum');
                this.shameful = this.player2.findCardByName('shameful-display');

                this.noMoreActions();
            });

            it('should prevent chagatai if a province is broken on attack', function() {
                this.initiateConflict({
                    type: 'military',
                    province: this.shameful,
                    attackers: [this.chagatai],
                    defenders: [this.steward],
                    jumpTo: 'afterConflict'
                });

                expect(this.chagatai.bowed).toBe(true);
                expect(this.shameful.isBroken).toBe(true);
            });

            it('should not trigger if public forum is used', function () {
                this.initiateConflict({
                    type: 'military',
                    province: this.publicForum,
                    attackers: [this.chagatai],
                    defenders: [this.steward],
                    jumpTo: 'afterConflict'
                });

                expect(this.player2).toHavePrompt('Triggered Abilities');
                this.player2.clickCard(this.publicForum);
                expect(this.chagatai.bowed).toBe(true);
                expect(this.publicForum.isBroken).toBe(false);
            });

            it('should work if a opponent uses endless plains and moves the conflict', function () {<commit_msg>added a test to see if it works for a normal province break<commit_after>describe('<NAME>', function() {
    integration(function() {
        describe('Moto Chagatai\'s ability', function() {
            beforeEach(function() {
                this.setupTest({
                    phase: 'conflict',
                    player1: {
                        fate: 3,
                        inPlay: ['moto-chagatai', 'shrine-maiden'],
                        hand:[]
                    },
                    player2: {
                        inPlay: ['steward-of-law'],
                        hand: ['for-shame', 'talisman-of-the-sun'],
                        provinces: ['public-forum', 'endless-plains', 'fertile-fields']
                    }
                });

                this.chagatai = this.player1.findCardByName('moto-chagatai');
                this.shrineMaiden = this.player1.findCardByName('shrine-maiden');
                this.steward = this.player2.findCardByName('steward-of-law');

                this.endlessPlains = this.player2.findCardByName('endless-plains');
                this.publicForum = this.player2.findCardByName('public-forum');
                this.fertileFields = this.player2.findCardByName('fertile-fields');

                this.noMoreActions();
            });

            it('should prevent chagatai if a province is broken on attack', function() {
                this.initiateConflict({
                    type: 'military',
                    province: this.fertileFields,
                    attackers: [this.chagatai],
                    defenders: [this.steward],
                    jumpTo: 'afterConflict'
                });
                expect(this.chagatai.bowed).toBe(false);
                expect(this.fertileFields.isBroken).toBe(true);
            });

            it('should not trigger if public forum is used', function () {
                this.initiateConflict({
                    type: 'military',
                    province: this.publicForum,
                    attackers: [this.chagatai],
                    defenders: [this.steward],
                    jumpTo: 'afterConflict'
                });

                expect(this.player2).toHavePrompt('Triggered Abilities');
                this.player2.clickCard(this.publicForum);
                expect(this.chagatai.bowed).toBe(true);
                expect(this.publicForum.isBroken).toBe(false);
            });

            it('should work if a opponent uses endless plains and moves the conflict', function () {
{'fraction_non_alphanumeric': 0.11571230433921141, 'fraction_numerical': 0.004359025163463444, 'mean_word_length': 1.4072484501669051, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6030166', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1273, 'n_words': 217}