e2e: Waits for login before moving forward (#21185)

This commit is contained in:
Hugo Häggmark
2019-12-19 07:51:32 +01:00
committed by GitHub
parent 0676189291
commit f1b675b12e
3 changed files with 12 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
import React, { PureComponent, SyntheticEvent, ChangeEvent } from 'react';
import React, { ChangeEvent, PureComponent, SyntheticEvent } from 'react';
import { Tooltip } from '@grafana/ui';
import appEvents from 'app/core/app_events';
import { AppEvents } from '@grafana/data';
import { e2e } from '@grafana/e2e';
import appEvents from 'app/core/app_events';
interface Props {
onSubmit: (pw: string) => void;
@@ -115,7 +117,7 @@ export class ChangePassword extends PureComponent<Props, State> {
placement="bottom"
content="If you skip you will be prompted to change password next time you login."
>
<a className="btn btn-link" onClick={this.onSkip}>
<a className="btn btn-link" onClick={this.onSkip} aria-label={e2e.pages.Login.selectors.skip}>
Skip
</a>
</Tooltip>