Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaylor113 committed Sep 10, 2020
1 parent f74a4b9 commit 141e118
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ describe('Auth test', () => {
cy.visit('');
cy.url().should('include', Cypress.env('appHost'));
masthead.username.shouldHaveText(KUBEADMIN_IDP);
cy.byTestID('global-notification-text').contains(
// cy.get('.co-global-notifications').contains(
// cy.get('.co-global-notifications').contains(
cy.byTestID('global-notifications').contains(
'You are logged in as a temporary administrative user. Update the cluster OAuth configuration to allow others to log in.',
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/console-notifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ConsoleNotifier_: React.FC<ConsoleNotifierProps> = ({ obj, location }) =>
data-test={`${notification.metadata.name}-${notification.spec.location}`}
>
<div className="co-global-notification__content">
<p className="co-global-notification__text" data-test="global-notification-text">
<p className="co-global-notification__text">
{notification.spec.text}{' '}
{_.get(notification.spec, ['link', 'href']) && (
<a
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/global-notifications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ImpersonateNotifier } from './impersonate-notifier';
import { KubeAdminNotifier } from './kube-admin-notifier';

export const GlobalNotifications = () => (
<div className="co-global-notifications">
<div className="co-global-notifications" data-test="global-notifications">
<KubeAdminNotifier />
<ImpersonateNotifier />
</div>
Expand Down
2 changes: 1 addition & 1 deletion test-prow-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ CHROME_VERSION=$(google-chrome --version) ./test-gui.sh "${1:-e2e}"
if [ $# -eq 0 ] || [ "$1" == "release" ]; then
./test-cypress.sh
fi
if ["$1" == "login" ]; then
if [ $# -eq 1 ] && ["$1" == "login" ]; then
./test-cypress.sh 'tests/app/auth-multiuser-login.spec.ts'
fi

0 comments on commit 141e118

Please sign in to comment.