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

Update check the addons catalog page test #12190

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -41,41 +41,28 @@ scenario('Check the addons catalog page in the Back Office', () => {
.then(() => client.checkTextValue(ModulesCatalogPage.module_name, "SEO Expert", 'contain'))
.then(() => client.switchWindow(0));
});
test('should click on "Discover the payment modules" link', () => {
return promise
.then(() => client.moveToObject(ModulesCatalogPage.discover_payment_modules_link))
.then(() => client.waitForVisibleAndClick(ModulesCatalogPage.discover_payment_modules_link))
.then(() => client.pause(2000));
});
test('should check that the page is well opened', () => {
return promise
.then(() => client.switchWindow(3))
.then(() => client.refresh())
.then(() => client.checkTextValue(ModulesCatalogPage.category_name_text, "Payment", 'contain'))
.then(() => client.switchWindow(0));
});
test('should click on "View all modules" link', () => {
return promise
.then(() => client.scrollWaitForExistAndClick(ModulesCatalogPage.view_all_modules_button))
.then(() => client.pause(2000));
});
test('should check that the page is well opened', () => {
return promise
.then(() => client.switchWindow(4))
.then(() => client.switchWindow(3))
.then(() => client.refresh())
.then(() => client.isExisting(ModulesCatalogPage.prestashop_addons_logo, 2000))
.then(() => client.switchWindow(0));
});
test('should search for the modules on the prestashop addons', () => {
return promise
.then(() => client.waitAndSetValue(ModulesCatalogPage.search_addons_input, 'chat'))
.then(() => client.waitAndSetValue(ModulesCatalogPage.search_addons_input, 'minimal'))
.then(() => client.keys('Enter'));
});
test('should check that the page is well opened', () => {
return promise
.then(() => client.switchWindow(5))
.then(() => client.switchWindow(4))
.then(() => client.refresh())
.then(() => client.checkTextValue(ModulesCatalogPage.search_name, "chat"))
.then(() => client.checkTextValue(ModulesCatalogPage.search_name, "minimal"))
.then(() => client.switchWindow(0));
});
}, 'common_client');
Expand Down