Skip to content

Commit

Permalink
pretter
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Jan 18, 2024
1 parent f01a01f commit e0414f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ module.exports = {
singleQuote: true,

pugSingleQuote: false,
printWidth: 120,
printWidth: 100,
};
14 changes: 12 additions & 2 deletions apps/badman-e2e/src/pages/assembly.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default class AssemblyPage {
readonly overlay: Locator;

constructor(page: Page) {
setup(page);
this.page = page;

this.clubInput = page.locator('badman-select-club input');
Expand Down Expand Up @@ -65,7 +64,11 @@ export default class AssemblyPage {
}

async goto() {
await setup(this.page);
await this.page.goto('/competition/assembly');
await this.page.waitForResponse(
(resp) => resp.url().includes('/api/v1/translate/i18n') && resp.status() === 200,
);
}

/**
Expand All @@ -77,8 +80,15 @@ export default class AssemblyPage {
await this.page.keyboard.press('ArrowDown');
await this.page.keyboard.press('Enter');

await this.page.waitForResponse(
(resp) => resp.url().includes('/graphql') && resp.status() === 200,
);

// wait for season to be loaded
await this.page.waitForSelector('badman-select-season');
await this.page.waitForSelector('badman-select-season', {
// this can take a wile on CI
timeout: 120_000,
});
}

/**
Expand Down
1 change: 1 addition & 0 deletions apps/badman/proxy.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"/socket.io": {
"target": "http://127.0.0.1:5000",
"secure": false,
"logLevel": "silent",
"ws": true
}
}

0 comments on commit e0414f2

Please sign in to comment.