Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Sketch out “up” tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwhite committed May 19, 2021
1 parent 087aa46 commit 872aef6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions ui/tests/acceptance/up-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { module, todo } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import { setupMirage } from 'ember-cli-mirage/test-support';
import login from 'waypoint/tests/helpers/login';

module('Acceptance | up', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
login();

todo('happy path', async function (assert) {
// Given I have a project with remote runners enabled
// And I am viewing an app in that project
// When I click “build, deploy & release”
// Then I see “Building...”
// And I see a new build appear in the list
// And I see “Deploying...”
// And I see a new deployment appear in the list
// And I see “Releasing...”
// And I see a new release appear in the list
// And I see the button become re-enabled
});

todo('build fails', function (assert) {
// Given I have a project with remote runners enabled
// And I am viewing an app in that project
// When I click “build, deploy & release”
// Then I see “Building...”
// And I see a new build appear in the list with an error
// And I see the button become re-enabled
});

todo('deploy fails', function (assert) {
// Given I have a project with remote runners enabled
// And I am viewing an app in that project
// When I click “build, deploy & release”
// Then I see “Building...”
// And I see a new build appear in the list
// And I see “Deploying...”
// And I see a new deployment appear in the list with an error
// And I see the button become re-enabled
});

todo('release fails', function (assert) {
// Given I have a project with remote runners enabled
// And I am viewing an app in that project
// When I click “build, deploy & release”
// Then I see “Building...”
// And I see a new build appear in the list
// And I see “Deploying...”
// And I see a new deployment appear in the list
// And I see “Releasing...”
// And I see a new release appear in the list with an error
// And I see the button become re-enabled
});
});

0 comments on commit 872aef6

Please sign in to comment.