Commit e9f17d1a authored by sfang97's avatar sfang97

Change order of buttons in spec

parent d22a0a38
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
:loading="isSaving" :loading="isSaving"
:label="s__('Badges|Save changes')" :label="s__('Badges|Save changes')"
type="submit" type="submit"
container-class="btn btn-success gl-justify-content-end" container-class="btn btn-success"
/> />
</div> </div>
<div v-else class="gl-display-flex gl-justify-content-end form-group"> <div v-else class="gl-display-flex gl-justify-content-end form-group">
......
...@@ -182,11 +182,11 @@ describe('BadgeForm component', () => { ...@@ -182,11 +182,11 @@ describe('BadgeForm component', () => {
const buttons = vm.$el.querySelectorAll('.row-content-block button'); const buttons = vm.$el.querySelectorAll('.row-content-block button');
expect(buttons.length).toBe(2); expect(buttons.length).toBe(2);
const buttonSaveElement = buttons[0]; const buttonSaveElement = buttons[1];
expect(buttonSaveElement).toBeVisible(); expect(buttonSaveElement).toBeVisible();
expect(buttonSaveElement).toHaveText('Save changes'); expect(buttonSaveElement).toHaveText('Save changes');
const buttonCancelElement = buttons[1]; const buttonCancelElement = buttons[0];
expect(buttonCancelElement).toBeVisible(); expect(buttonCancelElement).toBeVisible();
expect(buttonCancelElement).toHaveText('Cancel'); expect(buttonCancelElement).toHaveText('Cancel');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment