mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-03 22:33:25 +00:00
17 lines
527 B
JavaScript
17 lines
527 B
JavaScript
![]() |
import { visit, click, fillIn } from 'ember-native-dom-helpers';
|
||
|
import { authenticationUrl, testUser, testPassword } from 'wherehows-web/tests/helpers/login/constants';
|
||
|
import {
|
||
|
loginUserInput,
|
||
|
loginPasswordInput,
|
||
|
loginSubmitButton
|
||
|
} from 'wherehows-web/tests/helpers/login/page-element-constants';
|
||
|
|
||
|
const appLogin = async () => {
|
||
|
await visit(authenticationUrl);
|
||
|
await fillIn(loginUserInput, testUser);
|
||
|
await fillIn(loginPasswordInput, testPassword);
|
||
|
await click(loginSubmitButton);
|
||
|
};
|
||
|
|
||
|
export default appLogin;
|