Long Beach last week became the first the city in the state to mandate an extra $4 per hour in “Hero Pay” for grocery workers who are on the front line in COVID-19 pandemic.

It was also the first city to be quickly sued by the California Grocers Association.

Now, as the city faces a pending legal battle, it has become a litmus test for other cities and municipalities like Santa Monica, Los Angeles and the L.A. County Board of Supervisors, which are all considering similar local laws but have yet to go as far as Long Beach.

“There are other cities looking at ‘Hero Pay’ but Long Beach as far as I know is the first to pass an ordinance,” said City Attorney Charles Parkin on Monday.

Parkin said the city anticipated legal challenges, but its City Council, which unanimously passed the ordinance last week, has indicated that it wants to push forward.

Mayor Robert Garcia signed the ordinance into local law on Wednesday.

The ordinance applies to large chain grocery stores with 300 or more workers nationally and with 15 employees per store within the city. It would last at least 120 days.

The California Grocers Association, which represents about 6,000 grocery stores across, filed a request for a temporary restraining order but a judge rejected the order late Friday, Parkin said.

The case is due back in court on Feb. 18 for a hearing on a preliminary injunction, which would stop the law while the case is pending.

In its lawsuit, the California Grocers Association, which represents about 6,000 grocery stores, has argued that the ordinance is unconstitutional and is preempted by federal labor law that protects collective bargaining agreements. Some grocery store employees are part of unions that negotiate pay structures with the grocery chains.

The suit also notes that the ordinance unfairly ignores other essential workers in areas like public safety, transportation and restaurants.

Parkin said there are many legal questions since the ordinance was moved through quickly without much time for a thorough analysis.

While the city has passed the law, it is unclear if all local grocers have yet raised hourly pay for workers, he said.

Depending on the outcome of the lawsuit, the city could be on the hook to pay grocers for damages if they raise pay but the law is later found to be unconstitutional, he said.

First District Councilwoman Mary Zendejas, who proposed the ordinance, said she still believes it was the right move for grocery workers who have put their lives as risk in the pandemic.

“I do think strongly that it’s still the right thing to do for these families who are being affected day in and day out,” she said. “We’re living in unprecedented time and it’s a matter of urgency. We need to do more than just celebrating them, we need to provide them a benefit.”

The move has also frustrated some of the city’s unions who say they also deserve hero pay as frontline workers.

Richard Suarez, a representative for the International Association of Machinists and Aerospace Workers, which represents about 3,000 city employees and 60 percent of the workforce, said the union has many essential workers including ambulance drivers, airport police, harbor patrol officers and office workers.

“I would encourage city leaders to not ignore the people that make this city run every day,” he said.

The California Grocers Association has said other cities could face a similar lawsuit if they push forward.

While the L.A. County Board of Supervisors has approve an initial plan, its has not yet scheduled a final vote on the matter. Santa Monica has also voted for an ordinance that would mandate an extra $5 per hour for grocery workers, but the plan is still in the “beginning stages,” a spokesperson said Monday.