Refactor tests and update turbo.json configuration
Removed unnecessary response wait in `auth.po.ts` and a redundant output property in `turbo.json`. The code is now simpler with less redundancy, which makes it easier to read and maintain. Removed files are either not used or not necessary for the project to behave as expected.
This commit is contained in:
@@ -38,6 +38,7 @@ test.describe('Account Settings', () => {
|
|||||||
|
|
||||||
test('user can update their password', async () => {
|
test('user can update their password', async () => {
|
||||||
const password = (Math.random() * 100000).toString();
|
const password = (Math.random() * 100000).toString();
|
||||||
|
|
||||||
await account.updatePassword(password);
|
await account.updatePassword(password);
|
||||||
|
|
||||||
await page.waitForResponse((resp) => {
|
await page.waitForResponse((resp) => {
|
||||||
|
|||||||
@@ -74,10 +74,6 @@ export class AuthPageObject {
|
|||||||
repeatPassword: 'password',
|
repeatPassword: 'password',
|
||||||
});
|
});
|
||||||
|
|
||||||
await this.page.waitForResponse((resp) => {
|
|
||||||
return resp.url().includes('auth');
|
|
||||||
});
|
|
||||||
|
|
||||||
await this.visitConfirmEmailLink(email);
|
await this.visitConfirmEmailLink(email);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,9 +48,6 @@
|
|||||||
"test": {
|
"test": {
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"^topo"
|
"^topo"
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"node_modules/.cache/tsbuildinfo.json"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"clean": {
|
"clean": {
|
||||||
|
|||||||
Reference in New Issue
Block a user