Skip to content

Commit

Permalink
removendo chamadas nos locais errados e adicionando todo
Browse files Browse the repository at this point in the history
  • Loading branch information
feroline committed Aug 30, 2024
1 parent 59d84b2 commit b7f8c7d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion cypress/pageObjects/checkBox/CheckBoxLocators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const CheckBoxLocators = {
itemMenu: 'Check Box',
collapseExpandBtn: 'button.rct-collapse-btn',
treeNode: '#tree-node',
expandAllBtn: () =>
Expand Down
1 change: 0 additions & 1 deletion cypress/pageObjects/radioButton/RadioBtnLocators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const RadioButtonLocators = {
itemMenu: 'Radio Button',
yesRadio: '#yesRadio',
impressiveRadio: '#impressiveRadio',
noRadio: '#noRadio',
Expand Down
4 changes: 0 additions & 4 deletions cypress/pageObjects/radioButton/RadioBtnPage.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import locators from './RadioBtnLocators';

class RadioButtonPage {
radioBtnMenu() {
return cy.getItemMenu(locators.itemMenu).click();
}

yesByRadio() {
return cy.get(locators.yesRadio);
}
Expand Down
1 change: 0 additions & 1 deletion cypress/pageObjects/textBox/TextBoxLocators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const TextBoxLocators = {
itemMenu: 'Text Box',
usernameInput: '#userName',
emailInput: '#userEmail',
currentAddressInput: '#currentAddress',
Expand Down
1 change: 0 additions & 1 deletion cypress/pageObjects/webTables/WebTableLocators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const WebTablesLocators = {
itemMenu: 'Web Tables',
searchInput: '#searchBox',
searchBtn: '.input-group-append',
headerTable: 'div.ReactTable div.rt-thead.-header',
Expand Down
3 changes: 1 addition & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// TODO: Adicionar cenário na tela inicial que valida todos os itens do menu;
Cypress.Commands.add('getItemMenu', (textoItem: string) => {
// TODO: Adicionar a um locator
cy.xpath(
`//div[contains(@class,'show') and contains(@class,'collapse') ]/ul/li/span[contains(.,'${textoItem}')]`
);
});

Cypress.Commands.add('verificaMensagemInicial', () => {
// TODO: Adicionar a um enum
const mensagem = 'Please select an item from left to start practice.';
// TODO: Adicionar a um locator
return cy
Expand Down

0 comments on commit b7f8c7d

Please sign in to comment.