Skip to content

Commit fe6a835

Browse files
committed
Merge branch 'develop'
2 parents fcc8c31 + e8c19e8 commit fe6a835

File tree

12 files changed

+58
-10
lines changed

12 files changed

+58
-10
lines changed

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ services:
259259
- REMEMBER_ME_SECRET=bogus-development-key
260260
- LANGUAGE_DEPOT_API_TOKEN=bogus-development-token
261261
- XDEBUG_MODE=develop,debug
262+
- GOOGLE_CLIENT_ID=bogus-development-token
263+
- GOOGLE_CLIENT_SECRET=bogus-development-token
264+
- FACEBOOK_CLIENT_ID=bogus-development-token
265+
- FACEBOOK_CLIENT_SECRET=bogus-development-token
262266
command: sh -c "/wait && apache2-foreground"
263267
extra_hosts:
264268
- "host.docker.internal:host-gateway"

next-app/src/routes/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@
186186

187187
<ul class='menu p-4 w-fit bg-base-100 text-base-content'>
188188
<li class='menu-title grid grid-cols-3'>
189-
<span on:click={ () => sort_items_by('name') } on:keydown={ () => sort_items_by('name') } class='cursor-pointer w-fit'>Name</span>
190-
<span on:click={ () => sort_items_by('prop') } on:keydown={ () => sort_items_by('name') } class='cursor-pointer w-fit'>Prop</span>
191-
<span on:click={ () => sort_items_by('number') } on:keydown={ () => sort_items_by('name') } class='cursor-pointer w-fit'>Number</span>
189+
<button on:click={ () => sort_items_by('name') } class=w-fit>Name</button>
190+
<button on:click={ () => sort_items_by('prop') } class=w-fit>Prop</button>
191+
<button on:click={ () => sort_items_by('number') } class=w-fit>Number</button>
192192
</li>
193193

194194
<hr class='mt-2 mb-4'>

test/e2e/pages/base-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export abstract class BasePage
2828
return this.page.url().startsWith(appUrl) && !!this.page.url().match(this.urlPattern);
2929
}
3030

31-
private readonly locators: Locator[];
31+
protected readonly locators: Locator[];
3232
private readonly urlPattern = this.url.includes('#') ?
3333
new RegExp(`${this.url}`) : new RegExp(`${this.url}/?(#|$)`);
3434

test/e2e/pages/editor.page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class EditorPage extends BasePage {
109109
super(page, `/app/lexicon/${project.id}`, page.locator('.words-container-title:visible, .no-entries:visible'));
110110
}
111111

112-
async goto(options?: EditorGotoOptions): Promise<this> {
112+
override async goto(options?: EditorGotoOptions): Promise<this> {
113113
await super.goto(options);
114114
if (options?.entryId) {
115115
// Navigating from one entry to another via URL/goto doesn't cause angular to load the new entry
@@ -120,7 +120,7 @@ export class EditorPage extends BasePage {
120120
return this;
121121
}
122122

123-
async waitFor(): Promise<this> {
123+
override async waitFor(): Promise<this> {
124124
await super.waitFor();
125125
if (await this.page.isVisible('[id^=entryId_]')) {
126126
await this.locator('.entry-card').waitFor();

test/e2e/pages/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ export * from './site-admin.page';
1515
export * from './user-profile.page';
1616
export * from './home.page';
1717
export * from './terms-and-conditions.page';
18+
export * from './oauth-google.page';
19+
export * from './oauth-facebook.page';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Page } from '@playwright/test';
2+
import { BasePage } from './base-page';
3+
4+
export class OAuthFacebookPage extends BasePage {
5+
6+
override get isCurrentPage(): boolean {
7+
return this.page.url().startsWith('https://www.facebook.com/');
8+
}
9+
10+
constructor(page: Page) {
11+
super(page, '/oauthcallback/facebook', page.locator('#facebook'));
12+
}
13+
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Page } from '@playwright/test';
2+
import { BasePage } from './base-page';
3+
4+
export class OAuthGooglePage extends BasePage {
5+
6+
override get isCurrentPage(): boolean {
7+
return this.page.url().startsWith('https://accounts.google.com/');
8+
}
9+
10+
constructor(page: Page) {
11+
super(page, '/oauthcallback/google', page.locator(':text("Google will share your name"), :text("The OAuth client was not found.")'));
12+
}
13+
14+
}

test/e2e/pages/project-settings.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class ProjectSettingsPage extends BasePage {
2727
}
2828

2929
// navigate to project without UI
30-
async goto(): Promise<this> {
30+
override async goto(): Promise<this> {
3131
await super.goto();
3232
await this.page.getByLabel('Project Name').waitFor();
3333
return this;

test/e2e/pages/projects.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class ProjectsPage extends BasePage {
3535
super(page, '/app/projects', page.locator('button:has-text("Start or Join a New Project")'));
3636
}
3737

38-
async goto(): Promise<this> {
38+
override async goto(): Promise<this> {
3939
await super.goto();
4040
if (await this.projectsPerPageDropdown.isVisible()) {
4141
await this.projectsPerPageDropdown.selectOption('100');

test/e2e/pages/signup.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class SignupPage extends BasePage {
5454
super(page, '/public/signup', page.locator('#email'));
5555
}
5656

57-
async goto(options?: SignupGotoOptions): Promise<this> {
57+
override async goto(options?: SignupGotoOptions): Promise<this> {
5858
if (options?.email) {
5959
await this.page.goto(this.url + '#!/?e=' + encodeURIComponent(options?.email));
6060
await Promise.all([

0 commit comments

Comments
 (0)