Skip to content

Commit

Permalink
wait that github service disabled after OAuth revoking (#22829)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkorikSergey authored Feb 20, 2024
1 parent a697721 commit 7b8dde4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/e2e/pageobjects/dashboard/UserPreferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { By } from 'selenium-webdriver';
import { DriverHelper } from '../../utils/DriverHelper';
import { Logger } from '../../utils/Logger';
import { GitProviderType } from '../../constants/FACTORY_TEST_CONSTANTS';
import { TIMEOUT_CONSTANTS } from '../../constants/TIMEOUT_CONSTANTS';

@injectable()
export class UserPreferences {
Expand Down Expand Up @@ -83,7 +84,13 @@ export class UserPreferences {
await this.driverHelper.waitVisibility(UserPreferences.CONFIRMATION_WINDOW);
await this.driverHelper.waitAndClick(UserPreferences.DELETE_CONFIRMATION_CHECKBOX);
await this.driverHelper.waitAndClick(UserPreferences.DELETE_ITEM_BUTTON_ENABLED);
await this.driverHelper.waitDisappearance(this.getServicesListItemLocator(servicesName));

await this.driverHelper.waitAttributeValue(
this.getServicesListItemLocator(servicesName),
'disabled',
'true',
TIMEOUT_CONSTANTS.TS_COMMON_DASHBOARD_WAIT_TIMEOUT
);
}

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

0 comments on commit 7b8dde4

Please sign in to comment.