Skip to content

Commit

Permalink
feat(Calendar): for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir authored and Vladimir committed Sep 5, 2023
1 parent e3025af commit 8271705
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 26 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -232,29 +232,32 @@ CalendarWithPeriod.parameters = {
css: '[data-tid="DayCellView__root"]:nth-child(11) ',
});
await this.browser.actions({ bridge: true }).click(day10).click(day15).perform();
await this.expect(await this.takeScreenshot()).to.matchImage('DateSelect months');
},
async 'Checking blocked left days'() {
await delay(1000);
await this.browser
.actions({
bridge: true,
})
.click(this.browser.findElement({ css: '[data-tid="period_clearing"]' }))
.perform();
const day10 = this.browser.findElement({
css: '[data-tid="DayCellView__root"]:nth-child(11) ',
});

await this.browser.actions({ bridge: true }).click(day10).perform();
await delay(1000);

await this.expect(await this.takeScreenshot()).to.matchImage('DateSelect months');
},
// async 'Checking blocked left days'() {
// await delay(1000);
// await this.browser
// .actions({
// bridge: true,
// })
// .click(this.browser.findElement({ css: '[data-tid="period_clearing"]' }))
// .perform();
// const day10 = this.browser.findElement({
// css: '[data-tid="DayCellView__root"]:nth-child(11) ',
// });

// await this.browser.actions({ bridge: true }).click(day10).perform();
// await delay(1000);

// await this.expect(await this.takeScreenshot()).to.matchImage('DateSelect months');
// },
async 'Checking blocked right days'() {
const inputPeriodStart = this.browser.findElement({
css: '[data-tid="input_period_start"]',
});
await delay(1000);
await this.browser
.actions({ bridge: true })
.click(inputPeriodStart)
Expand Down

0 comments on commit 8271705

Please sign in to comment.