Skip to content

Commit

Permalink
latest change
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1373107 committed Dec 12, 2023
1 parent 93dedb5 commit cd59b8b
Showing 1 changed file with 1 addition and 145 deletions.
146 changes: 1 addition & 145 deletions tests/userInterface.puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,151 +725,7 @@ try {
});
await Promise.all(promises);
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#email'),
targetPage.locator('::-p-xpath(//*[@id=\\"email\\"])'),
]);
target.setTimeout(timeout);
await target.click({
offset: {
x: 124,
y: 24.40625,
},
});
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#email'),
targetPage.locator('::-p-xpath(//*[@id=\\"email\\"])'),
]);
target.setTimeout(timeout);
await target.fill('[email protected]');
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#password'),
targetPage.locator('::-p-xpath(//*[@id=\\"password\\"])'),
]);
target.setTimeout(timeout);
await target.click({
offset: {
x: 124,
y: 18.40625,
},
});
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#password'),
targetPage.locator('::-p-xpath(//*[@id=\\"password\\"])'),
]);
target.setTimeout(timeout);
await target.fill('123');
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#login'),
targetPage.locator('::-p-xpath(//*[@id=\\"login\\"])'),
]);
target.setTimeout(timeout);
target.on('action', () => startWaitingForEvents());
await target.click({
offset: {
x: 28,
y: 24.40625,
},
});
await Promise.all(promises);
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('li:nth-of-type(6) > a'),
targetPage.locator(
'::-p-xpath(//*[@id=\\"siteNavbar\\"]/ul/li[6]/a)'
),
targetPage.locator('::-p-text(Profile)'),
]);
target.setTimeout(timeout);
target.on('action', () => startWaitingForEvents());
await target.click({
offset: {
x: 29.9375,
y: 21,
},
});
await Promise.all(promises);
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#Password'),
targetPage.locator('::-p-xpath(//*[@id=\\"Password\\"])'),
]);
target.setTimeout(timeout);
await target.click({
offset: {
x: 42.5,
y: 26.40625,
},
});
}
{
const targetPage = page;
const promises = [];
const startWaitingForEvents = () => {
promises.push(targetPage.waitForNavigation());
};
startWaitingForEvents();
const target = await Promise.race([
targetPage.locator('#Password'),
targetPage.locator('::-p-xpath(//*[@id=\\"Password\\"])'),
targetPage.locator(':scope >>> #Password'),
]);
target.setTimeout(timeout);
await target.fill('123');
}

await browser.close();
} catch (err) {
console.error(err);
Expand Down

0 comments on commit cd59b8b

Please sign in to comment.