Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/EVEREST-1471-upgrade-tests' into E…
Browse files Browse the repository at this point in the history
…VEREST-1471-upgrade-tests
  • Loading branch information
yurkovychv committed Sep 24, 2024
2 parents 280031f + 7c905ad commit fd625a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/apps/everest/.e2e/auth.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
// limitations under the License.

import { expect, test as setup } from '@playwright/test';
import {STORAGE_STATE_FILE, TIMEOUT} from './constants';
import { STORAGE_STATE_FILE, TIMEOUT } from './constants';
const { CI_USER, CI_PASSWORD } = process.env;

setup('Login', async ({ page }) => {
await page.goto('/login');
await page.getByTestId('text-input-username').fill(CI_USER);
await page.getByTestId('text-input-password').fill(CI_PASSWORD);
await page.getByTestId('login-button').click();
await expect(page.getByText('Create database')).toBeVisible({timeout: TIMEOUT.ThirtySeconds});
await expect(page.getByText('Create database')).toBeVisible({
timeout: TIMEOUT.ThirtySeconds,
});

const origins = (await page.context().storageState()).origins;
expect(origins.length).toBeGreaterThan(0);
Expand Down

0 comments on commit fd625a2

Please sign in to comment.