mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Reintroduce user deletion actions in the members table in Users and Project settings page (#19604)
This commit is contained in:
@@ -18,4 +18,21 @@ export abstract class BasePage {
|
||||
protected async clickButtonByName(name: string) {
|
||||
await this.page.getByRole('button', { name }).click();
|
||||
}
|
||||
|
||||
protected async waitForRestResponse(
|
||||
url: string | RegExp,
|
||||
method?: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE',
|
||||
) {
|
||||
if (typeof url === 'string') {
|
||||
return await this.page.waitForResponse((res) => {
|
||||
const matches = res.url().includes(url);
|
||||
return matches && (method ? res.request().method() === method : true);
|
||||
});
|
||||
}
|
||||
|
||||
return await this.page.waitForResponse((res) => {
|
||||
const matches = url.test(res.url());
|
||||
return matches && (method ? res.request().method() === method : true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user