-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test files that skip race * fix typos * page object * spec * traefik label uniqueness * actually use configurable api address * cannot install playwright lib #microsoft/playwright/issues/23228 * fix tty check * construct URL rest test util * use cfg * refactor * tx private error * remove useless address arg * error refactoring * validate response refactor - default only in tests * pg errors * notes on descriptive xo errors for end users * contextual errors in xo * better rest errors * private error hidden * update * include types in error res * traefik update and move certificate creation to traefik setup * update * fix typos * whitespace * frontend api path utils * notes on excluded index generation * refactor and add caching to test watch default * allow tag selection for keys extraction * generics notes * proper skipping of excluded index types * notes for required xo generic query function * broken - TODO adapt xo index gen for base filter function * broken - working on params fix * fix duplicate base query gen and remove old user nonunique index * add xo tests description * add trigram indexes to xo test schema - no tests yet * test trigram custom filters * test trigram filtering * ilike parameter escape workaround
- Loading branch information
Showing
135 changed files
with
3,211 additions
and
2,655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ WORKDIR /e2e | |
|
||
ENV PATH /e2e/node_modules/.bin:$PATH | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { Page, BrowserContext } from 'playwright' | ||
|
||
export class LoginPage { | ||
private readonly page: Page | ||
|
||
constructor(page: Page) { | ||
this.page = page | ||
} | ||
|
||
static async create(page: Page): Promise<LoginPage> { | ||
const loginPage = new LoginPage(page) | ||
await loginPage.navigateToLoginPage() | ||
return loginPage | ||
} | ||
|
||
private async navigateToLoginPage(): Promise<void> { | ||
await this.page.goto('<login_page_url>') | ||
} | ||
|
||
async enterCredentials(username: string, password: string): Promise<void> { | ||
await this.page.fill('#username', username) | ||
await this.page.fill('#password', password) | ||
} | ||
|
||
async submitLoginForm(): Promise<void> { | ||
await this.page.click('button[type="submit"]') | ||
await this.page.waitForURL('**/<target-path>') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import test, { expect } from '@playwright/test' | ||
import { LoginPage } from '__tests__/pages/login' | ||
import authServerUsers from '@users' | ||
|
||
test('Login redirects to auth server and back if authenticated', async ({ page }) => { | ||
test.skip() // TODO: | ||
const loginPage = await LoginPage.create(page) | ||
const user1 = authServerUsers.user1 | ||
await loginPage.enterCredentials(user1.username, user1.password) | ||
await loginPage.submitLoginForm() | ||
|
||
expect(page.url()).toBe('<expected_redirect_url>') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.