Skip to content

What is browseTheRestaurantsTableForSpecificEntryAndClickOnIt doing? #20

@cer

Description

@cer

This code is opaque.

  browseTheRestaurantsTableForSpecificEntryAndClickOnIt: async () => {

    await waitForSelector(page, SEL.TBL_RESTAURANTS_LIST);

    const paginationControlSel = cssSel(SEL.TBL_RESTAURANTS_LIST).desc(SEL.CTL_PAGINATION_FOR_TABLE);
    await waitForSelector(page, paginationControlSel);
    await waitForSelectorAndClick(page,
      paginationControlSel.desc('.page-item').attr('title', 'next page').child('a.page-link'));

    const el = await waitForSelectorWithText(page, 'td', 'All items');
    await el.click();

  },
  • This should be called selectRestaurant()
  • But what specific entry is clicking on
  • Perhaps its clicking on the next page. But who knows.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions