-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into underline
- Loading branch information
Showing
17 changed files
with
183 additions
and
194 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 |
---|---|---|
|
@@ -26,7 +26,7 @@ test('[public tenant] - external user can join a team', async ({ page }) => { | |
await expect(page.getByRole('heading', { name: 'admin-api-tenant-default' })).toBeHidden(); | ||
await expect(page.getByRole('heading', { name: 'test API' })).toBeVisible(); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByPlaceholder('Password').press('Enter'); | ||
await page.getByText('Consumers').click(); | ||
|
@@ -58,7 +58,7 @@ test('[public tenant] - external user can join a team', async ({ page }) => { | |
await page.getByText('Validate your Evil Corp.').first().click(); | ||
await page.getByRole('link', { name: 'Confirm' }).click(); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('Pa$$w0rd'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
await expect(page.getByRole('heading', { name: 'public with permissions API' })).toBeVisible(); | ||
|
@@ -195,7 +195,7 @@ test('[public tenant] - external user can signup', async ({ page }) => { | |
await page.getByRole('link', { name: 'Confirm' }).click(); | ||
await page.locator('h1.jumbotron-heading').filter({ hasText: 'Evil Corp.' }).waitFor({ state: 'visible' }) | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('Pa$$w0rd'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
await page.waitForResponse(response => response.url().includes('/auth/Local/callback') && response.status() === 303) | ||
|
@@ -302,7 +302,7 @@ test('[public tenant] - unlogged user can accept subscription demand', async ({ | |
// await expect(page.getByRole('alert')).toContainText('Thank you for your response'); | ||
// await page.getByRole('link', { name: 'Go back' }).click(); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByPlaceholder('Password').press('Enter'); | ||
await page.getByText('Consumers').click(); | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ test('test a complete user journey', async ({ page }) => { | |
//connection | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
await page.waitForResponse(response => response.url().includes('/auth/Local/callback') && response.status() === 303) | ||
|
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 |
---|---|---|
|
@@ -166,7 +166,7 @@ test('Create & manage API', async ({ page }) => { | |
//connection with admin | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByPlaceholder('Password').press('Enter'); | ||
//create new API | ||
|
@@ -371,7 +371,7 @@ test('aggregation mode', async ({ page, request }) => { | |
//login | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
|
||
|
@@ -451,7 +451,7 @@ test('do search', async ({ page, request }) => { | |
//login | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByPlaceholder('Password').press('Enter'); | ||
await page.waitForResponse(r => r.url().includes('/api/me/context') && r.status() === 200) | ||
|
@@ -486,7 +486,7 @@ test('do search', async ({ page, request }) => { | |
test('API admin can transfer his own API ownership', async ({ page }) => { | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
await page.getByRole('heading', { name: 'test API' }).click(); | ||
|
@@ -530,7 +530,7 @@ test('Filter API List', async ({ page, request }) => { | |
|
||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
await page.waitForResponse(r => r.url().includes('/api/me/context') && r.status() === 200) | ||
|
@@ -558,7 +558,7 @@ test('Filter API List', async ({ page, request }) => { | |
await page.getByRole('option', { name: 'external' }).click(); | ||
await expect(page.locator('.preview')).toContainText('1 result categorized in external'); | ||
await page.getByText('clear filter').click(); | ||
await page.getByPlaceholder('Search your API...').fill('test'); | ||
await page.getByPlaceholder('Search your API').fill('test'); | ||
await expect(page.locator('.preview')).toContainText('2 results matching test'); | ||
await page.locator('.reactSelect__indicator').first().click(); | ||
await page.getByRole('option', { name: 'Testers' }).click(); | ||
|
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 |
---|---|---|
|
@@ -63,7 +63,7 @@ test('aggregation security works', async ({ page, request }) => { | |
//login | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByRole('button', { name: 'Login' }).click(); | ||
|
||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ test.beforeAll(async () => { | |
test('manage team as admin', async ({ page }) => { | ||
await page.goto(`http://localhost:${exposedPort}/apis`); | ||
await page.getByRole('img', { name: 'user menu' }).click(); | ||
await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
await page.getByPlaceholder('Password').fill('password'); | ||
await page.getByPlaceholder('Password').press('Enter'); | ||
await page.locator('div:nth-child(4) > .notification-link').first().click(); | ||
|
@@ -56,7 +56,7 @@ test('manage team as admin', async ({ page }) => { | |
// test('join a team as daikoku user', async ({ page }) => { | ||
// await page.goto('http://localhost:9000/apis'); | ||
// await page.getByRole('img', { name: 'user menu' }).click(); | ||
// await page.getByPlaceholder('Email adress').fill('[email protected]'); | ||
// await page.getByPlaceholder('Email address').fill('[email protected]'); | ||
// await page.getByPlaceholder('Password').fill('password'); | ||
// await page.getByPlaceholder('Password').press('Enter'); | ||
// await page.waitForResponse(r => r.url().includes('/api/me/context') && r.status() === 200) | ||
|
Oops, something went wrong.