Skip to content

Commit

Permalink
Use isPresent to check warnings
Browse files Browse the repository at this point in the history
We hide these columns from small screens to these are not visible on
some test devices, however the HTML is present and we can check for
that.
  • Loading branch information
jrjohnson committed May 5, 2023
1 parent 928938d commit 9898a2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/pages/components/program-year/list-item.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { clickable, create, isVisible, text } from 'ember-cli-page-object';
import { clickable, create, isPresent, isVisible, text } from 'ember-cli-page-object';

const definition = {
scope: '[data-test-program-year-list-item]',
Expand All @@ -8,19 +8,19 @@ const definition = {
title: text('[data-test-title]'),
competencies: {
scope: '[data-test-competencies]',
hasWarning: isVisible('[data-test-warning]'),
hasWarning: isPresent('[data-test-warning]'),
},
objectives: {
scope: '[data-test-objectives]',
hasWarning: isVisible('[data-test-warning]'),
hasWarning: isPresent('[data-test-warning]'),
},
directors: {
scope: '[data-test-directors]',
hasWarning: isVisible('[data-test-warning]'),
hasWarning: isPresent('[data-test-warning]'),
},
terms: {
scope: '[data-test-terms]',
hasWarning: isVisible('[data-test-warning]'),
hasWarning: isPresent('[data-test-warning]'),
},
canBeRemoved: isVisible('[data-test-remove]'),
remove: clickable('[data-test-remove]'),
Expand Down

0 comments on commit 9898a2e

Please sign in to comment.