mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-26 02:50:01 +00:00
31 lines
795 B
JavaScript
31 lines
795 B
JavaScript
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';
|
|
|
|
moduleForAcceptance('Acceptance | browse', {
|
|
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'
|
|
);
|
|
});
|
|
});
|