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

Commit

Permalink
Actually click the up button
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwhite committed May 25, 2021
1 parent 2747f9f commit 2067d2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions ui/app/components/up-button.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<code class="up-button__msg">{{this.currentMessage}}</code>
{{/if}}
<Pds::Button
data-test-up-button
@variant="primary"
@compact={{true}}
disabled={{this.up.isRunning}}
Expand Down
10 changes: 6 additions & 4 deletions ui/tests/acceptance/up-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test, todo } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import { visit, find } from '@ember/test-helpers';
import { visit, click } from '@ember/test-helpers';
import { setupMirage } from 'ember-cli-mirage/test-support';
import login from 'waypoint/tests/helpers/login';

Expand All @@ -13,13 +13,15 @@ module('Acceptance | up', function (hooks) {
// Given I have a project with remote runners enabled
let workspace = this.server.create('workspace', 'default');
let project = this.server.create('project', 'simple', 'with-remote-runners');
let app = this.server.create('application', 'simple', { project });
let application = this.server.create('application', 'simple', { project });
this.server.createList('build', 1, 'random', { application });

// And I am viewing an app in that project
await visit(`/${workspace.name}/${project.name}/app/${app.name}`);
await visit(`/${workspace.name}/${project.name}/app/${application.name}`);

assert.ok(find('main'));
// When I click “build, deploy & release”
await click('[data-test-up-button]');

// Then I see “Building...”
// And I see a new build appear in the list
// And I see “Deploying...”
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/helpers/a11y.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type OptionsWithContext = RunOptions & ContextObject;
// Selectors of elements to exclude from a11y auditing. See the following docs
// for more:
// https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#include-exclude-object
const exclude = [['.pds-logomark'], ['.pds-tabNav'], ['.card-header']];
const exclude = [['.pds-logomark'], ['.pds-tabNav'], ['.card-header'], ['.empty-state']];

export function setup(): void {
setupGlobalA11yHooks(() => true);
Expand Down

0 comments on commit 2067d2d

Please sign in to comment.