31 lines
795 B
JavaScript
Raw Normal View History

2017-10-11 17:44:18 -07:00
import { test } from 'qunit';
import moduleForAcceptance from 'wherehows-web/tests/helpers/module-for-acceptance';
import { authenticationUrl, testUser, testPassword } from 'wherehows-web/tests/helpers/login/constants';
import {
loginUserInput,
loginPasswordInput,
loginSubmitButton
} from 'wherehows-web/tests/helpers/login/page-element-constants';
2018-02-08 17:09:13 -08:00
moduleForAcceptance('Acceptance | browse', {
2017-10-11 17:44:18 -07:00
beforeEach() {
visit(authenticationUrl);
fillIn(loginUserInput, testUser);
fillIn(loginPasswordInput, testPassword);
click(loginSubmitButton);
}
});
test('Verify the broswe icon exist', function(assert) {
visit('/');
andThen(function() {
assert.equal(
find(`${'.feature-card__title'}:eq(0)`)
.text()
.trim(),
'Browse'
);
});
});