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 {
>
</template>
<template #append>
<gl-button class="js-snippet-cancel-btn" :href="cancelButtonHref">{{
<gl-button data-testid="snippet-cancel-btn" :href="cancelButtonHref">{{
__('Cancel')
}}</gl-button>
</template>
......
......@@ -100,7 +100,7 @@ describe('Snippet Edit app', () => {
});
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', () => {
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