Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: runApexTests test in redhat #27

Merged
merged 15 commits into from
Oct 30, 2024
2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"timeout": 240000,
"timeout": 300000,
"reporter": "./lib/custom-summary-reporter.js"
}
8 changes: 4 additions & 4 deletions test/selfSpecs/notifications.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ describe('Notifications', async () => {
utilities.Duration.seconds(2)
);
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(isPresent).to.be.true;
expect(isPresent).to.equal(true);
await utilities.dismissNotification('Modify the file and retrieve again');
await utilities.pause(utilities.Duration.seconds(1));
const isNotPresent = await utilities.notificationIsAbsentWithTimeout(
'Modify the file and retrieve again',
utilities.Duration.seconds(1)
);
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(isNotPresent).to.be.true;
expect(isNotPresent).to.equal(true);
await utilities.pause(utilities.Duration.seconds(2));
});
it('should show a notification with two actions', async () => {
Expand All @@ -55,7 +55,7 @@ describe('Notifications', async () => {
utilities.Duration.seconds(1)
);
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(isPresent).to.be.true;
expect(isPresent).to.equal(true);
await utilities.pause(utilities.Duration.seconds(1));

await utilities.acceptNotification('Choose an action:', 'A', utilities.Duration.seconds(1));
Expand All @@ -65,6 +65,6 @@ describe('Notifications', async () => {
utilities.Duration.seconds(5)
);
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(isNotPresent).to.be.true;
expect(isNotPresent).to.equal(true);
});
});
Loading