Skip to content

Commit 7b8dde4

Browse files
authored
wait that github service disabled after OAuth revoking (#22829)
1 parent a697721 commit 7b8dde4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/e2e/pageobjects/dashboard/UserPreferences.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { By } from 'selenium-webdriver';
1414
import { DriverHelper } from '../../utils/DriverHelper';
1515
import { Logger } from '../../utils/Logger';
1616
import { GitProviderType } from '../../constants/FACTORY_TEST_CONSTANTS';
17+
import { TIMEOUT_CONSTANTS } from '../../constants/TIMEOUT_CONSTANTS';
1718

1819
@injectable()
1920
export class UserPreferences {
@@ -83,7 +84,13 @@ export class UserPreferences {
8384
await this.driverHelper.waitVisibility(UserPreferences.CONFIRMATION_WINDOW);
8485
await this.driverHelper.waitAndClick(UserPreferences.DELETE_CONFIRMATION_CHECKBOX);
8586
await this.driverHelper.waitAndClick(UserPreferences.DELETE_ITEM_BUTTON_ENABLED);
86-
await this.driverHelper.waitDisappearance(this.getServicesListItemLocator(servicesName));
87+
88+
await this.driverHelper.waitAttributeValue(
89+
this.getServicesListItemLocator(servicesName),
90+
'disabled',
91+
'true',
92+
TIMEOUT_CONSTANTS.TS_COMMON_DASHBOARD_WAIT_TIMEOUT
93+
);
8794
}
8895

8996
async selectListItem(servicesName: string): Promise<void> {

0 commit comments

Comments
 (0)