Commit 4d899253 authored by Denys Mishunov's avatar Denys Mishunov

Switched to data-testid for testing marker

parent 7f417a21
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
> >
</template> </template>
<template #append> <template #append>
<gl-button class="js-snippet-cancel-btn" :href="cancelButtonHref">{{ <gl-button data-testid="snippet-cancel-btn" :href="cancelButtonHref">{{
__('Cancel') __('Cancel')
}}</gl-button> }}</gl-button>
</template> </template>
......
...@@ -100,7 +100,7 @@ describe('Snippet Edit app', () => { ...@@ -100,7 +100,7 @@ describe('Snippet Edit app', () => {
}); });
const findSubmitButton = () => wrapper.find('[type=submit]'); const findSubmitButton = () => wrapper.find('[type=submit]');
const findCancellButton = () => wrapper.find('.js-snippet-cancel-btn'); const findCancellButton = () => wrapper.find('[data-testid="snippet-cancel-btn"]');
describe('rendering', () => { describe('rendering', () => {
it('renders loader while the query is in flight', () => { it('renders loader while the query is in flight', () => {
......
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