Skip to content

Commit

Permalink
fix create accounts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpelay committed Jun 3, 2024
1 parent 67bc2b0 commit a1fd574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ describe('Testing a teacher account', () => {

it('Is able to create new accounts for class', () => {
navigateToClass(classname);
cy.getDataCy('student_username_cell').should(($div) => {
const text = $div.text();
expect(text).include(students[0]);
})
cy.getDataCy(`student_${students[0]}`).should('include.text', students[0])
})

it('Is able to download login credentials', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ before(() => {
describe('Testing second teacher accounts', () => {
it('Is able to create new accounts for class', () => {
navigateToClass(classname);
cy.getDataCy('student_username_cell').should(($div) => {
const text = $div.text();
expect(text).include(students[0]);
})
cy.getDataCy(`student_${students[0]}`).should('include.text', students[0])
})

it('Is able to download login credentials', () => {
Expand Down

0 comments on commit a1fd574

Please sign in to comment.