test: improvements for windows os execution
This commit is contained in:
@@ -126,7 +126,7 @@ test.describe('Admin Applications', () => {
|
||||
.getByRole('option')
|
||||
.filter({ hasText: 'Unnamed' });
|
||||
|
||||
await expect(await existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect.poll(() => existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect(newConnectionOption).toBeEnabled();
|
||||
await expect(newConnectionOption).toHaveCount(1);
|
||||
await expect(newOAuthConnectionOption).toHaveCount(0);
|
||||
@@ -197,7 +197,7 @@ test.describe('Admin Applications', () => {
|
||||
.getByRole('option')
|
||||
.filter({ hasText: 'Unnamed' });
|
||||
|
||||
await expect(await existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect.poll(() => existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect(newConnectionOption).toHaveCount(0);
|
||||
await expect(newOAuthConnectionOption).toBeEnabled();
|
||||
await expect(newOAuthConnectionOption).toHaveCount(1);
|
||||
@@ -266,7 +266,7 @@ test.describe('Admin Applications', () => {
|
||||
.getByRole('option')
|
||||
.filter({ hasText: 'Unnamed' });
|
||||
|
||||
await expect(await existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect.poll(() => existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect(newConnectionOption).toHaveCount(1);
|
||||
await expect(newOAuthConnectionOption).toBeEnabled();
|
||||
await expect(newOAuthConnectionOption).toHaveCount(1);
|
||||
@@ -331,7 +331,7 @@ test.describe('Admin Applications', () => {
|
||||
.getByRole('option')
|
||||
.filter({ hasText: 'Unnamed' });
|
||||
|
||||
await expect(await existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect.poll(() => existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect(newConnectionOption).toHaveCount(0);
|
||||
await expect(newOAuthConnectionOption).toHaveCount(0);
|
||||
});
|
||||
@@ -402,7 +402,7 @@ test.describe('Admin Applications', () => {
|
||||
.locator('.MuiAutocomplete-noOptions')
|
||||
.filter({ hasText: 'No options' });
|
||||
|
||||
await expect(await existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect.poll(() => existingConnection.count()).toBeGreaterThan(0);
|
||||
await expect(noConnectionsOption).toHaveCount(0);
|
||||
await expect(newConnectionOption).toHaveCount(0);
|
||||
await expect(newOAuthConnectionOption).toHaveCount(0);
|
||||
|
||||
@@ -88,7 +88,6 @@ test.describe('User management page', () => {
|
||||
adminCreateUserPage.seed(9100);
|
||||
const testUser = adminCreateUserPage.generateUser();
|
||||
await test.step('Create the test user', async () => {
|
||||
await adminUsersPage.navigateTo();
|
||||
await adminUsersPage.createUserButton.click();
|
||||
await adminCreateUserPage.fullNameInput.fill(testUser.fullName);
|
||||
await adminCreateUserPage.emailInput.fill(testUser.email);
|
||||
@@ -174,7 +173,6 @@ test.describe('User management page', () => {
|
||||
const user1 = adminCreateUserPage.generateUser();
|
||||
const user2 = adminCreateUserPage.generateUser();
|
||||
await test.step('Create the first user', async () => {
|
||||
await adminUsersPage.navigateTo();
|
||||
await adminUsersPage.createUserButton.click();
|
||||
await adminCreateUserPage.fullNameInput.fill(user1.fullName);
|
||||
await adminCreateUserPage.emailInput.fill(user1.email);
|
||||
|
||||
Reference in New Issue
Block a user