Skip to content

Commit

Permalink
fixup! front: add times and stops e2e test for operational studies
Browse files Browse the repository at this point in the history
  • Loading branch information
Maymanaf committed Oct 3, 2024
1 parent 0539483 commit 2a4a2a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions front/tests/pages/op-input-table-page-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ class OperationalStudiesInputTablePage {
) {
const translations = selectedLanguage === 'English' ? enTranslations : frTranslations;

const normalizedHeaderName = cleanWhitespace(header);
const expectedHeaderName = cleanWhitespace(header);

const headersCount = await this.columnHeaders.count();
let columnIndex = -1;

for (let headerIndex = 0; headerIndex < headersCount; headerIndex += 1) {
const headerText = await this.columnHeaders.nth(headerIndex).innerText();
const normalizedHeaderText = cleanWhitespace(headerText);
if (normalizedHeaderText === normalizedHeaderName) {
const currentColumnHeader = await this.columnHeaders.nth(headerIndex).innerText();
const currentHeaderName = cleanWhitespace(currentColumnHeader);
if (currentHeaderName === expectedHeaderName) {
columnIndex = headerIndex + 1;
break;
}
Expand Down

0 comments on commit 2a4a2a0

Please sign in to comment.