Skip to content

Commit

Permalink
Removed fetch test green button
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Sharma committed Feb 17, 2024
1 parent 676f847 commit 4ca286f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions app/components/tasks.hbs
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
<div class='tasks-container'>
{{#if @dev}}
{{#if @noInProgressTask}}
<div class='fetch-task' data-test-fetchSection>
<p>You have no task in progress! click below to fetch tasks</p>
<Button
@onClick={{@handleAssignment}}
@disabled={{@disabled}}
@isLoading={{@findingTask}}
>
{{if @findingTask 'Fetching task' 'Fetch Task'}}
</Button>
</div>
{{/if}}
{{/if}}
{{#if @tasksToShow.length}}
{{#each @tasksToShow as |task|}}
<div>
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/components/tasks-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { module, test } from 'qunit';
import { module, skip, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { find, render, waitUntil, fillIn } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
Expand All @@ -17,7 +17,7 @@ module('Integration | Component | tasks', function (hooks) {
assert.ok(this.element.textContent.trim().includes('tasks'));
});

test('there is a fetch task button if no in progress task are there', async function (assert) {
skip('there is a fetch task button if no in progress task are there', async function (assert) {
this.setProperties({
onTaskChange: () => {},
onTaskUpdate: () => {},
Expand Down

0 comments on commit 4ca286f

Please sign in to comment.