Skip to content

Commit

Permalink
[ACS-6456] added return types, fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
SheenaMalhotra182 committed Dec 22, 2023
1 parent 98ead2d commit 8b6f822
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/playwright/actions/src/tests/share/share-file.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test.describe('Share a file', () => {
});

test.describe('when logged in', () => {
const expiryDateObj: Date = new Date();
const expiryDateObj = new Date();
expiryDateObj.setFullYear(expiryDateObj.getFullYear() + 1);
const expiryDate: any = expiryDateObj.toISOString().replace('Z', '+0000');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class DateTimePicker extends BaseComponent {
const nextAvailableDay = new Date();
nextAvailableDay.setDate(today.getDate() + 2);
if (nextAvailableDay.getMonth() !== today.getMonth()) {
await await this.nextMonthBtn.click();
await this.nextMonthBtn.click();
}
await this.selectDay(nextAvailableDay.getDate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ShareDialogComponent extends BaseComponent {
getDialogLabel = () => this.getChild('label').innerText();
getErrorByText = (text: string): Locator => this.page.locator('mat-error', { hasText: text });

async getLabels() {
async getLabels(): Promise<Array<string>> {
return await this.page.$$eval('.adf-share-link__label', (elements) => elements.map((element) => element.textContent));
}

Expand Down

0 comments on commit 8b6f822

Please sign in to comment.