I would switch the order around here - `expect(element(byCss.locator()).toEqual(byCss)` just to match the semantics of expect.